I\'m just new to node and npm and this is frustrating.
Well it\'s almost all said in the title. On a Windows 10 x64 using a NON elevated prompt, all npm commands sho
For me, cd ios && pod install && cd ..
fixed it.
I had the same issue and was able to resolve it on Windows by running the cmd prompt as Admin.
Try reinstalling node and npm for the non-admin account. If that's not an option, you can use the portable version:
Download from http://nodejs.org/dist/
Extract the archive.
Open cmd
and cd
to the extracted folder.
Run nodevars.bat
.
It will set PATH and other things so you can now use node from this folder.
In my case remove white space from folder name.
I also had this problem. Just delete npm folder, it will be created again. This problem is due to user privileges.
I had similar issue, solved it by removing .npmrc
file, located at c:\Users\<USER>\
location.
I believe it was caused by running earlier npm config set
in wrong location.
Kudos to this comments thread.