npm install operation not permitted

win7
npm 5.4.1
局部安装命令npm install报错没有权限
然后右键管理员身份运行,同样的操作还是没有权限。。。

npm ERR! path E:\works\高企协\htea-wechat\node_modules\fsevents\node_modules\aws-sign2\package.js
npm ERR! code EPERM
npm ERR! errno -4048
npm ERR! syscall unlink
npm ERR! Error: EPERM: operation not permitted, unlink 'E:\works\高企协\htea-wechat\node_modules\
vents\node_modules\aws-sign2\package.json'
npm ERR!  { Error: EPERM: operation not permitted, unlink 'E:\works\高企协\htea-wechat\node_modul
fsevents\node_modules\aws-sign2\package.json'
npm ERR!   stack: 'Error: EPERM: operation not permitted, unlink \'E:\\works\\高企协\\htea-wechat
ode_modules\\fsevents\\node_modules\\aws-sign2\\package.json\'',
npm ERR!   errno: -4048,
npm ERR!   code: 'EPERM',
npm ERR!   syscall: 'unlink',
npm ERR!   path: 'E:\\works\\高企协\\htea-wechat\\node_modules\\fsevents\\node_modules\\aws-sign2
ackage.json' }
npm ERR!
npm ERR! Please try running this command again as root/Administrator.

npm ERR! A complete log of this run can be found in:
npm ERR!     C:\Users\roksys\AppData\Roaming\npm-cache\_logs\2017-09-08T03_43_44_072Z-debug.log
阅读 8.6k
1 个回答

手贱升了个级。。。
具体内容可见
https://stackoverflow.com/que...
降级使用npm
或者在npm install 后加 --no-optional. argument will prevent optional dependencies from being installed.

撰写回答
你尚未登录,登录后可以
  • 和开发者交流问题的细节
  • 关注并接收问题和回答的更新提醒
  • 参与内容的编辑和改进,让解决方法与时俱进
推荐问题