
Sometimes, versions discrepancy may cause incompatibility errors. It means that if you have installed node.js, you've already installed npm as well.Īlso, pay attention to the node.js and npm release versions table that shows us approximate versions compatibility. To update Node.js itself, I recommend you use nvm, the Node Version Manager.Īs you may already know, npm is currently bundled with node.js. (Consider, if there is ever a bug in the update command.) In those cases, you can do this: curl | sh Occasionally, the version of npm will progress such that the current version cannot be properly installed with the version that you have installed already. You can also update all outdated local packages by doing npm update without any arguments, or global packages by doing npm update -g. Make sure to use sudo npm install -g npm if on a Mac. Please note that this command will remove your current version of npm. The following original answer is from the old FAQ that no longer exists, but should work for Linux and Mac: How do I update npm? npm install -g npm This time around I could see the node.js installation was able to install an updated version of npm as well where it failed to upgrade an older npm if that folder already existed in my roaming profile.This command will update all the packages listed to the latest version (specified by the tag config), respecting semver.Īdditionally, see the documentation on Node.js and NPM installation and Upgrading NPM.


My first attempt was updating over the top of my existing node.js installation. When I check the current versions of node and npm I can see node.js is at version 14.17.5 but npm is only at 6.9.0 Npm WARN You can find the latest version at Npm WARN Supported releases of Node.js are the latest release of 6, 8, 9, 10, 11, 12.

Npm WARN can't make any promises that npm will work with this version. Npm WARN You should probably upgrade to a newer version of node as we

Npm WARN npm does not support Node.js v14.17.5 After attempting to upgrade my version of Node.js on my Windows 10 machine (directly from the Node.js LTS Windows MSI download) I was left with an install of Node.js where I couldn’t use NPM.Īnytime I tried to use NPM (Node Package Manager) I would get the following error
