npm ERR! Registry returned 401 for GET on https://registry.npmjs.org/….
Hello all,
This error occurred to me when trying to install npm modules with npm install
. I tried with Yarn but the error was similar:
error Couldn't find package "..." on the "npm" registry.
The solution was into the .npmrc
file.
I was using wrong credentials. I had to set the always-auth
parameter to false
.
To make it work on Yarn I also needed to remove the _auth
parameter.
Have a good day!
No comments yet.