1

在安装 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

请在这里帮助我,

4

1 回答 1

0

有同样的问题。

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

于 2017-06-21T00:16:35.270 回答