I updated to the latest node v9.1.0 and now npm doesn\'t work.
npm WARN npm npm does not support Node.js v9.1.0
You can uninstall node current version, and install a early version that support npm. Then run npm install npm@latest -g and install current node version. It's work for me
Easiest way I found was to install the latest node with brew and the latest npm manually:
brew uninstall node
brew install node
npm install -g npm@latest
This removed the warning message. For some reason brew wasn't linking the new npm installed by node while it was updating node itself.
I had a similar issue trying to install other stuffs. And looks like the npm version was not compatible with my node version. In my case i had npm 5.4.2 and node v10.15.0 At the end of this process i had the version npm 6.7.0 and node v10.5.0
First Option: I downgrade the version of node and other tools.
On terminal execute the next command with the version to be installed. (Example if we need change to node 8.14.1)
1.- Npm install -g node@8.14.1
Then we execute the command to uninstall the version to be removed.
2.- Npm uninstall -g node@8.15.0
After that we need execute the next command to set the new path
3.- Npm update -g node@8.14.1
Finally we only need execute the version to see if the changes were added successfully
4.- Node -v
In this case we will see the version as 8.14.1 and we finished the process.
If you want do it for Appium and Npm
version you can open a new terminal and follow the same steps in order to change the version. For example:
Npm install -g appium@1.7.2
Npm uninstall -g appium@1.10.0
Npm update -g appium@1.7.2
Appium -v
In my case you must have the next versions:
Node 8.14.1
Npm 6.4.1
Other Way: To solve it i just execute in the terminal the next line.
curl -L https://npmjs.org/install.sh | sh
After download a few files (took around of 10 minutes to see results in the terminal) i was able to continue working with the new latest and compatible version of both tools.
The next WARM was displayed in this case.
npm WARN npm npm does not support Node.js v10.15.0.
npm WARN npm You should probably upgrade to a newer version of node as we
npm WARN npm can't make any promises that npm will work with this version.
npm WARN npm Supported releases of Node.js are the latest release of 4, 6, 7, 8.
npm WARN npm You can find the latest version at https://nodejs.org/
/Users
Fixed my issue update to 5.71
npm uninstall -g npm
npm i -g npm@next
Executing npm uninstall -g npm gave me same error
running npm install @angular/cli -g worked for me.
I was getting the below warning when I executed, npm install
to install package.json for my angular project.
npm WARN npm npm does not support Node.js v9.1.0 npm WARN npm You should probably upgrade to a newer version of node as we npm WARN npm can't make any promises that npm will work with this version. npm WARN npm Supported releases of Node.js are the latest release of 4, 6, 7, 8. npm WARN npm You can find the latest version at https://nodejs.org/ WARNING: You are likely using a version of node-tar or npm that is incompatible with this version of Node.js.ng-080b84bf08dd68e5.lock for ...\Angular\node Please use either the version of npm that is bundled with Node.js, or a version of npm (> 5.5.1 or < 5.4.0) or node-tar (> 4.0.1) that is compatible with Node.js 9 and above. C:\Program Files\nodejs\node.exe: src\node_zlib.cc:437: Assertion `args.Length() == 7 && "init(windowBits, level, memLevel, strategy, writeResult, writeCallback," " dictionary)"' failed.
According to @Ilyich, I uninstalled global npm, npm uninstall -g npm
And then I executed npm install
to install my package, it installed successfully.