Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Eliminate npm "update available" message

Tags:

npm

It seems that more recent versions of npm now produce:

enter image description here

I rely on my Linux (Ubuntu) package manager to make decisions about when to update node and npm. Is there a way to turn this check off?

npm config ls -l seems to have nothing related to this and in .npm in my home dir there appears to be no preferences file.

like image 451
timbo Avatar asked Oct 17 '17 23:10

timbo


People also ask

What is npm update check?

npm-check-updates upgrades your package. json dependencies to the latest versions, ignoring specified versions. maintains existing semantic versioning policies, i.e. "react": "^16.0.

Does npm update packages automatically?

Run npm update to automatically update my packages to the latest versions From docs: > This command will update all the packages listed to the latest version (specified by the tag config), respecting the semver constraints of both your package and its dependencies (if they also require the same package).

What is the use of npm update command?

npm update command: This npm command is used for updating the dependencies that are mention in the package. json file as well as install all the missing packages in the directory and also used for updating the current node version on the machine.


1 Answers

To disable notifier just run:

npm config set update-notifier false 

As Dem Pilafian mentioned - it will add update-notifier=false to ~/.npmrc

To see the current value you need this line

npm config get update-notifier 

Read more about npm config here https://docs.npmjs.com/cli/config

like image 58
vovchisko Avatar answered Sep 21 '22 23:09

vovchisko