Skip to content
Discussion options

You must be logged in to vote

Hey @Vectorial1024! Thanks for reaching out 👋

This behavior is expected after recent npm security updates. As part of these changes, npm access tokens stored in your local .npmrc now expire after 2 hours. When the token expires, commands like npm install will fail with the message “Access token expired or revoked”, even for read-only operations.

To fix this, simply re-authenticate and try again:

npm login

or

npm adduser

Once logged in again, npm install should work as expected.

Hope it helps!

Replies: 3 comments 16 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
16 replies
@ajayverma-cml
Comment options

@rishabh-wayone
Comment options

@rishabh-wayone
Comment options

@Ritik1330
Comment options

@helloupendra
Comment options

Answer selected by Vectorial1024
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
npm
Labels
Bug GitHub or a GitHub feature is not working as intended npm Discussions around programming langages, open source and software development