Reputation: 49
So I uninstalled the newer version of node that I had on my machine(v8.11.3
) and then installed the earlier version v6.11.0
(because my project needs earlier version to do a grunt build). Now when I try to do npm install
to restore the packages for my project it gives the following error.
Due to a recent security incident, all user tokens have been invalidated. Please see https://status.npmjs.org/incidents/dn7c1fgrr7ng for more details. To generate a new token, visit https://www.npmjs.com/settings/~/tokens or run
npm login
.
I tried doing a npm login
to generate the token (token generation was successful) but throws same error when I try doing npm install
the next time.
Upvotes: 2
Views: 1173
Reputation: 368
I was trying to install a package and I was getting the same error. After some time i realised that the package name which I was installing doesn't exists and npm was giving me this error.
Upvotes: 0
Reputation: 440
I was facing the same problem as you.
If you save the npm token inside your project folder, delete the file and do npm install
. Look for the file named .npmrc
and delete that.
Let me know if that helps.
Upvotes: 1
Reputation: 8443
I got same issue last time.
Steps that I did:
npm whoami
and check if your username appears. If not, do npm login
npm install
againHope it helps
Upvotes: 1