Remove "npm update check failed" error message on login

A few weeks ago, I made a few commands that caused each message to appear every time I accessed 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 delete this message? And is there anything else he could dump on my computer?

This is a persistent message upon login. Unfortunately, I don't know what commands caused this. And the file .bash_history

didn't help me find which command caused this.

+4


source to share


3 answers


I had a similar problem. I solved it by running the following command in iterm2 app.

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

      



and restarted the iterm2 app.

0


source


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



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

-1


source


Try this: npm install asdf

-1


source







All Articles