How to fix the error "user administrator is denied access to the package"

Now I update and run node v5.0.0 npm v3.3.6

On Mac (El Capitan)

When I run "npm install" in my project now. I get errors like this:

me:controls me$ sudo npm install
npm ERR! Darwin 15.0.0
npm ERR! argv "/usr/local/Cellar/node/0.10.36/bin/node" "/usr/local/bin/npm" "install"
npm ERR! node v5.0.0
npm ERR! npm  v3.3.6
npm ERR! code E403

npm ERR! user admin is not allowed to access package chai : chai
npm ERR! 
npm ERR! If you need help, you may report this error at:
npm ERR!     <https://github.com/npm/npm/issues>

npm ERR! Please include the following file with any support request:
npm ERR!     /Users/me/Dev/controls/npm-debug.log

I do not see any solutions for this on the Internet yet? I tried both sudo and not sudo and it doesn't make any difference.

Any suggestions?

+4
source share
1 answer

I had the same problem. Check the registry: npm config list. Try to run:

npm set registry "https://registry.npmjs.org/"

and then npm iagain.

I used synopia as a registry. Sinopia cannot work with limited access packages.

+12
source

Source: https://habr.com/ru/post/1616607/


All Articles