npm ERR! code E403
npm ERR! 403 403 Forbidden - PUT https://registry.npmmirror.com/-/user/org.couchdb.user:jieyucx - [FORBIDDEN] Public registration is not allowed
npm ERR! 403 In most cases, you or one of your dependencies are requesting
npm ERR! 403 a package version that is forbidden by your security policy, or
npm ERR! 403 on a server you do not have access to.
reason
It is your NPM that uses the mirror address.
liberation program
- Global installation is the source manager of node
npm install -g nrm
nrm ls
View the current source with
nrm ls
3. Switch to the official source address of npm
nrm use npm
Remember to switch back every time npm publish. When installing the package normally, you can
switch to Taobao mirror source by nrm use taobao
Depend on! ! !
I cut it and he reported 401 again. I am really convinced. It is obvious that I have switched to the npm source address.
You can use npm config get registry to view the current source
npm config get registry
If it is the npm source address, we close the terminal, restart it, and try to log in again.