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