任何人都可以帮助我解决这个npm错误。
npm版本: 5.5.1,
node版本: 8.9.1,
操作系统: windows 10 64位
S C:\wamp64\www\dev> npm install bulma
npm ERR! path C:\wamp64\www\dev\node_modules\.staging
npm ERR! code EPERM
npm ERR! errno -4048
npm ERR! syscall unlink
npm ERR! Error: EPERM: operation not permitted, unlink
'C:\wamp64\www\dev\node_modules\.staging'npm ERR! { Error: EPERM: operation
not permitted, unlink 'C:\wamp64\www\dev\node_modules\.staging'
npm ERR! stack: 'Error: EPERM: operation not permitted, unlink
\'C:\\wamp64\\www\\dev\\node_modules\\.staging\'',
npm ERR! errno: -4048,
npm ERR! code: 'EPERM',
npm ERR! syscall: 'unlink',
npm ERR! path: 'C:\\wamp64\\www\\dev\\node_modules\\.staging' }
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\Akshay\AppData\Roaming\npm-cache\_logs\2017-12-
10T10_34_23_659Z-debug.log错误: EPERM:不允许操作,取消链接'C:\wamp64\www\dev\node_modules.staging‘
发布于 2017-12-10 18:57:28
这是一个已知的问题,许多npm用户也有同样的问题。我的经验是将我的本地npm版本降级到5.0.3,它起作用了。有关更多详细信息,请参阅github帖子:https://github.com/npm/npm/issues/18380
https://stackoverflow.com/questions/47737973
复制相似问题