Not able to understand why am i getting this Error, i tried running the command as Administrator as well.
无法理解为什么我收到此错误,我尝试以管理员身份运行该命令。
npm ERR! Windows_NT 6.1.7601
npm ERR! argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "install" "--color=always"
npm ERR! node v6.9.5
npm ERR! npm v3.10.10
npm ERR! path C:\csf_workflow\Projects\DataCentralUI\Main\DataCentral\node_modules\node-sass\vendor\win32-x64-48\binding.node
npm ERR! code EPERM
npm ERR! errno -4048
npm ERR! syscall unlink
npm ERR! Error: EPERM: operation not permitted, unlink 'C:\XXXXXXXXXXXXX\node_modules\node-sass\vendor\win32-x64-48\binding.node'
npm ERR! at Error (native)
npm ERR! { Error: EPERM: operation not permitted, unlink 'C:\XXXXXXXXXXXXXXX\node_modules\node-sass\vendor\win32-x64-48\binding.node'
npm ERR! at Error (native)
npm ERR! errno: -4048,
npm ERR! code: 'EPERM',
npm ERR! syscall: 'unlink',
npm ERR! path: 'C:\\XXXXXXXXXXXXXXXXXX\\node_modules\\node-sass\\vendor\\win32-x64-48\\binding.node',
npm ERR! parent: 'datacentralui' }
npm ERR!
npm ERR! Please try running this command again as root/Administrator.
npm ERR! Please include the following file with any support request:
npm ERR! C:\XXXXXXXXXXXXXXXXX\npm-debug.log
1 个解决方案
#1
0
First, try:
第一次尝试:
npm cache clean
If that doesn’t fix things, it may be that the clean wasn't completely successful and there are still remnants. Take a look in %APPDATA%\npm-cache, or if you’re using PowerShell, $env:APPDATA\npm-cache. Manually remove everything in that directory, and try again.
如果这不能解决问题,可能是清洁不是完全成功,而且仍有残余物。看一下%APPDATA%\ npm-cache,或者如果你使用的是PowerShell,$ env:APPDATA \ npm-cache。手动删除该目录中的所有内容,然后重试。
Reference:
参考:
http://blogs.msdn.microsoft.com/matt-harrington/2012/02/23/how-to-fix-node-js-npm-permission-problems/)
#1
0
First, try:
第一次尝试:
npm cache clean
If that doesn’t fix things, it may be that the clean wasn't completely successful and there are still remnants. Take a look in %APPDATA%\npm-cache, or if you’re using PowerShell, $env:APPDATA\npm-cache. Manually remove everything in that directory, and try again.
如果这不能解决问题,可能是清洁不是完全成功,而且仍有残余物。看一下%APPDATA%\ npm-cache,或者如果你使用的是PowerShell,$ env:APPDATA \ npm-cache。手动删除该目录中的所有内容,然后重试。
Reference:
参考:
http://blogs.msdn.microsoft.com/matt-harrington/2012/02/23/how-to-fix-node-js-npm-permission-problems/)