我尝试使用npm install安装任何软件包时出现错误。无法使用npm install安装软件包,EPERM错误
下面是一个例子,当我尝试安装chart.js之
H:\testNG>npm install chart.js --save npm ERR! path H:\testNG\node_modules\fsevents\node_modules\aws-sign2\package.json npm ERR! code EPERM npm ERR! errno -4048 npm ERR! syscall unlink npm ERR! Error: EPERM: operation not permitted, unlink 'H:\testNG\node_modules\fsevents\node_modules\aws-sign2\package.json' npm ERR! at Error (native) npm ERR! { Error: EPERM: operation not permitted, unlink 'H:\testNG\node_modules\fsevents\node_modules\aws-sign2\package.json' npm ERR! at Error (native) npm ERR! stack: 'Error: EPERM: operation not permitted, unlink \'H:\testNG\node_modules\fsevents\node_modules\aws-sign2\package.json\'\n at Error (native)', npm ERR! errno: -4048, npm ERR! code: 'EPERM', npm ERR! syscall: 'unlink', npm ERR! path: 'H:\testNG\node_modules\fsevents\node_modules\aws-sign2\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\flaur\AppData\Roaming\npm-cache_logs\2017-09-04T16_16_04_331Z-debug.log
我将提供日志文件,如果有人想看到它 https://1drv.ms/u/s!AgNenwMMyZRWg4tRDcK4OeoiZKeVZw
And ..我没有任何权限设置在文件上,只是“ng new ..”和“npm install chart.js --save”。 –
没有杀毒软件,只是Windows Defender –