安装vue-cli时出错

当我运行npm install -g vue-cli时,它不断的抛出这个错误信息:

屏幕截图

npm ERR! pathC:\ Users \ End User \ AppData \ Roaming \ npm \ node_modules \ vue-cli \ node_modules \ nan \ package.json npm ERR! 代码EPERM npm ERR! errno -4048 npm ERR! 系统调用unlink npm ERR! Error:EPERM:operation not permitted,unlink'C:\ Users \ End User \ AppData \ Roaming \ npm \ node_modules \ vue-cli \ node_modules \ nan \ package.json'npm ERR! 在错误(本机)npm ERR! {Error:EPERM:operation not permitted,unlink'C:\ Users \ End User \ AppData \ Roaming \ npm \ node_modules \ vue-cli \ node_modules \ nan \ package.json'npm ERR! 在错误(本机)npm ERR! 错误(native)时出现“Error:EPERM:operation not permitted,unlink \'C:\ Users \ End User \ AppData \ Roaming \ npm \ node_modules \ vue-cli \ node_modules \ nan \ package.json \ ',npm ERR! errno:-4048,npm ERR! 代码:'EPERM',npm ERR! 系统调用:'unlink',npm ERR! path:'C:\ Users \ End User \ AppData \ Roaming \ npm \ node_modules \ vue-cli \ node_modules \ nan \ package.json'} npm ERR! npm ERR! 请尝试以root / Administrator身份再次运行此命令。

npm ERR! 这个运行的完整日志可以在下面find:npm ERR! C:\ Users \ End User \ AppData \ Roaming \ npm-cache_logs \ 2017-09-10T06_15_03_457Z-debug.log

  • 我尝试了所有可能的在线解决scheme:

    • 从Windows cmd与pipe理员访问运行,

    • npmcaching清理

    • closures我的文本编辑器

    • 重新启动我的电脑

请帮我解决这个问题。