Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

npm does not support Node.js v9.0.0

Tags:

node.js

npm

I just upgraded my project to use Node.js v9.0.0. When I start my project using npm, it tells me I should upgrade to a newer Node version, but I believe this is the newest version. I also believe I'm on the newest version of npm (5.5.1).

Do I need to worry about this warning? Is there a good way to resolve the issue?

Here's the full warning:

npm WARN npm npm does not support Node.js v9.0.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/
Now using node v9.0.0 (npm v5.5.1)
like image 705
user12341234 Avatar asked Oct 31 '17 20:10

user12341234


2 Answers

I've just upgraded to Node v9 and ran into the same issue. There's a Github issue for this here.

Following the advice to uninstall a global instance of npm has resolved the issue for me, using:

npm uninstall -g npm
like image 104
Kirk Larkin Avatar answered Sep 18 '22 13:09

Kirk Larkin


With Node 10.6.0 on Windows 10 with Git Bash installed, I did this and all worked well:

1. Launch Git Bash terminal.

2. cd ~/AppData/Roaming

3. rm -rf npm

4. rm -rf npm-cache

5. npm install -g npm@latest

Check version and test on an existing project to verify (cd to project dir)...

6. npm -version

7. npm install

NB: Performing steps 2 through 4 via Windows Explorer could be faster.

like image 35
Dut A. Avatar answered Sep 16 '22 13:09

Dut A.