Remove "npm update check failed" message at log on

Viewed 6107

I did a bunch of commands weeks ago that caused the following message to appear every time I access iTerm:

                  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) /folder/folder/.config

How do I remove this message? And anything else it could have dumped in my computer?

It's a persistent message at log on. Unfortunately, I do not know what commands triggered this. And .bash_history file didn't help me find which command caused this.

4 Answers

I had a similar issue. I solved it by running the following command in the iterm2 application.

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

and restarted the iterm2 application.

Just delete the configstore folder under the corresponding folder. And running the project again will regenerate the folder without reporting an error.

Run the command as superuser by starting the command with "sudo"

If you like to update your packages listed in your local package.json npm auto update package.

Related