I’m getting an error when trying to install a package with npm and I’m getting EACCES permission denied C:\Program Files\nodejs
I’m running ‘npm install mongoose’ for example and getting this error when running in that directory.
I’m new to this so any help is appreciated!
Thanks!
You need to run
cmd.exeas administrator. (rightclick, run as admin)You also don’t need to travers to node’s directory, just do
npm install -g [package](-g if for a global install.)