错误:EPERM:不允许操作,取消链接' C:\ wamp64 \ www \ dev \ node_modules \ .staging'

时间:2017-12-10 10:40:57

标签: node.js laravel npm staging bulma

任何人都可以帮我解决这个npm错误

npm版本:5.5.1,
节点版本:8.9.1,
os: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'

1 个答案:

答案 0 :(得分:0)

这是一个已知问题,很多npm用户都有同样的问题。我的经验是将我的本地npm版本降级到5.0.3并且它有效。有关详细信息,请参阅此github帖子:https://github.com/npm/npm/issues/18380