无法npm安装webpack。代码EPERM; errno -4048;系统调用:'取消关联'

时间:2017-12-31 21:26:39

标签: windows npm webpack

我无法npm安装-D webpack。我收到以下错误消息:

npm ERR! path C:\Users\Yevgeny Kozlov\Desktop\cpay-ext\node_modules\fsevents\nod
e_modules\abbrev\package.json
npm ERR! code EPERM
npm ERR! errno -4048
npm ERR! syscall unlink
npm ERR! Error: EPERM: operation not permitted, unlink 'C:\Users\Yevgeny Kozlov\
Desktop\cpay-ext\node_modules\fsevents\node_modules\abbrev\package.json'
npm ERR!  { Error: EPERM: operation not permitted, unlink 'C:\Users\Yevgeny Kozl
ov\Desktop\cpay-ext\node_modules\fsevents\node_modules\abbrev\package.json'
npm ERR!   stack: 'Error: EPERM: operation not permitted, unlink \'C:\\Users\\Ye
vgeny Kozlov\\Desktop\\cpay-ext\\node_modules\\fsevents\\node_modules\\abbrev\\p
ackage.json\'',
npm ERR!   errno: -4048,
npm ERR!   code: 'EPERM',
npm ERR!   syscall: 'unlink',
npm ERR!   path: 'C:\\Users\\Yevgeny Kozlov\\Desktop\\cpay-ext\\node_modules\\fs
events\\node_modules\\abbrev\\package.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\Yevgeny Kozlov\AppData\Roaming\npm-cache\_logs\2017-12-31T
21_12_18_374Z-debug.log

过去常常工作。感谢您对本机器的使用情况的帮助。

1 个答案:

答案 0 :(得分:0)

我已删除

C:\Users\Yevgeny Kozlov\AppData\Roaming\npm-cache\
C:\Users\Yevgeny Kozlov\AppData\Roaming\npm\

文件夹,它有所帮助。