Node v12 or higher is required for Snyk CLI version 1.853.0 and higher. It is always recommended to run 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. Run npm-v
to see which version you have, then npm install npm@latest -g
to install the newest npm update. Run npm -v
again if you want to make sure npm updated correctly.
To update Node, you’ll need npm’s n module. Run this code to clear npm’s 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.
How to upgrade NPM
npm install -g npm