Malay Dhar
Malay Dhar

Reputation: 23

I get a warning that npm update check failed

Following is the error message I get after installing npm packages

npm update check failed

Try running with sudo or get access to the local update config store via

sudo chown -R $USER:$(id -gn $USER) /home/ubuntu/.config

enter image description here

Upvotes: 0

Views: 7060

Answers (1)

Sashi
Sashi

Reputation: 2867

Answer from GitHub:

Fix for windows, I got this message :

npm update check failed Try running with sudo or get access to the local update config store via sudo chown -R $USER:$(id -gn $USER) C:\Users.config

so I went on to C:\Users.config and deleted the "configstore" folder. once I done this, next time a ran npm start, the folder was re-generated, and error stopped

Original answer

If you are on a Mac, this might help

sudo npm i -g npm

Upvotes: 1

Related Questions