Search code examples
npmenvironment-variables

Eliminate npm "update available" message


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.


Solution

  • 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