【问题标题】:On installing phonegap, I am getting an error在安装 phonegap 时,我收到一个错误
【发布时间】:2016-05-02 12:38:55
【问题描述】:

在安装 phonegap 时出现错误

npm ERR! Window_NT 6.1. 7600

npm ERR! argv " C:\\Program File(x86)\\node.js\\node.exe" "C:\\Users\\Abuzar\\AppData\\Roaming\\npm\\node_modules\\npm\\bin\\npm-cli.js" "install" "-g" "phonegap"

npm ERR! node v4.4.3

npm ERR! npm v3.8.8

npm ERR! path C:\Users\Abuzar\AppData\Roaming\npm\node_modules\.staging

npm ERR! code EPERM

npm ERR! erryno -4048

npm ERR! syscall un link



npm ERR! Error:EPERM: operation not permitted, unlink 'C:\Users\Abuzar\AppData\Roaming\npm\node_modules\.stagging'

npm ERR!    at Error <native>

npm ERR!   { [Error: EPERM: operation not permitted, unlink 'C:\Users\Abuzar
\AppData\Roaming\npm\node_modules\.stagging']

npm ERR!   errno: -4048,

npm ERR!   syscall:'unlink',

npm ERR!   path: 'C:\\Users\\AbuzaR\\AppData\\Roaming\\npm\\node_modules\\.stagging'

}

npm ERR! 

npm ERR! Please try running this command again as root/Administrator.

npm ERR! Please include the following file with any support request:

npm ERR!      C:\xampp\

htdocs\aa\npm-debug.log

请帮帮我,

【问题讨论】:

  • 嗨阿瑟阿里。你能提供更多信息吗?看起来你正在运行 Windows,哪个版本等 Windows 10?搜索错误号发现其他人有问题,安装时禁用防火墙修复some people
  • 我使用的是 Windows 7

标签: node.js cordova phonegap-plugins phonegap-cli


【解决方案1】:

有同样的问题。

删除 C:\Users\[User]\AppData\Roaming\npm\node_modules\.phonegap.DELETE 为我修复了它。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2022-09-27
    • 2020-03-07
    • 1970-01-01
    • 2020-10-05
    • 1970-01-01
    • 2019-12-01
    • 2010-12-11
    相关资源
    最近更新 更多