Install or upgrade to version of Node required for Snyk CLI

Node v12 or higher is required for Snyk CLI version 1.853.0 and higher. Snyk recommends running as recent a version of Node and npm as possible to ensure full compatibility.

How to upgrade Node

Node comes with npm pre-installed, but the manager is updated more frequently than Node.

To update Node, you need need the npm n module.

Run this code to clear the npm cache, install n, and install the latest stable version of Node:

sudo npm cache clean -f
sudo npm install -g n
sudo n stable

To install the latest release, use n latest. Alternatively, you can run n #.#.# to get a specific Node version.

Follow these steps to upgrade Node:

  1. Run npm-v to see which version you have.

  2. Then runnpm install npm@latest -g to install the newest npm update.

  3. Run npm -v again to make sure npm updated correctly.

How to upgrade npm

To upgrade npm, run the following:

npm install -g npm

Last updated

More information

Snyk privacy policy

© 2023 Snyk Limited | All product and company names and logos are trademarks of their respective owners.