Source: stackoverflow.com --- Monday, August 28, 2017
I am using NVM in Windows, which basically switches between the versions of nodeJs by changing the shortcut it creates in "C:\program files\nodejs" when I do nvm use 7.0 then the shortcut is updated to "c:\users\me\AppData\Roaming\nvm\v7.0" if I use 4.6, then "c:\users\me\AppData\Roaming\nvm\v4.6" As the actual node files sits inside NVM folder... All the files inside "C:\program files\nodejs" are locked, becoz of this, when I run npm install -g package , as part of installation process it tries to rename some files/directories, which it couldnt, and it fails.... -info using npm@3.10.8 -info using node@v7.0.0 -error Error: EPERM: operation not permitted, rename 'C:\Program Files\nodejs\node_modules\@angular\cli' -> 'C:\Program Files\nodejs\node_modules\@angular\.cli.DELETE' -error Error -error at moveAway (C:\Users\me\AppData\Roaming\nvm\v7.0.0\node_modules\npm\lib\install\action\finalize.js:38:5) -error at destStatted (C:\Users\me\AppData\Roaming\nvm\v7.0.0\node_modules\npm\lib\install\action\finalize.js:27:7) -error at FSReqWrap.oncomplete (fs.js:111:15) -error -error Error: EPERM: operation not permitted, rename 'C:\Program Files\nodejs\node_modules\@angular\cli' -> 'C:\Program Files\nodejs\node_modules\@angular\.cli.DELETE' -error Please try running this command again as root/Administrator. -verbose exit [ -4048, true ] I have been able to install packages globally before NVM, now I couldnt. I tried unlocking "program files\n ...
from Windows http://ift.tt/2wMs96v
No comments:
Post a Comment