Unsupported version of node #19019
Comments
Here's the issue from the node repo |
For now, you should be able to work around this
The “real” fix would be waiting for the next |
Is there an ETA until the next npm release? In Homebrew we're planning to withhold node 9 indefinitely until npm has a compatible release. |
Thank you for work around. I simply use yarn as for now, it shows a warning but works. I am just not sure if it is possible to upgrade npm with it after new version is out. |
Uninstalling previous version of Node as well as deleting |
Thank you, uninstall Node v9.0.0, delete npm & npm-cache, then re-install Node v9.0.0 works for me as well. |
This is failing when building on Heroku but I'm not sure if this is the correct issue. Any ideas here? |
@hatzipanis Try this solution: https://devcenter.heroku.com/articles/nodejs-support#specifying-a-node-js-version
|
I've just upgraded to Node v9 and ran into the same issue.Following the advice to uninstall a global instance of npm has resolved the issue for me, using:
This caused my system to fall back on the version of npm installed by node 9.0.0, thereby resolving the warning. |
@LayZeeDK I just deleted %AppData%\npm and %AppData%\npm-cache and then I reran node-v9.1.0-x64.msi setup without uninstalling existing node first. It prompted me to repair the existing setup and I went ahead with. after that I was able to run npm command.
it saved me from the hassle of uninstalling & installation of global packages again. |
Looks like it has to do with npm/lib/utils/unsupported.js var supportedNode = [
{ver: '4', min: '4.7.0'},
{ver: '6', min: '6.0.0'},
{ver: '7', min: '7.0.0'},
{ver: '8', min: '8.0.0'}
] |
Also had the same issue |
Followed @MohammadHasham steps in #19019 (comment) and the issue went away in node 9.1.0 update |
@jameswomack said:
That's it for sure. It looks like the Node.js folks may have just updated the unsupported file on their own. // This is from Node 9.1.0's npm/lib/utils/unsupported.js
var supportedNode = [
{ver: '4', min: '4.7.0'},
{ver: '6', min: '6.0.0'},
{ver: '7', min: '7.0.0'},
{ver: '8', min: '8.0.0'},
{ver: '9', min: '9.0.0'}
] The question is, what's the reason the npm folks haven't made such a simple change? Are they still testing compatibility before updating? If that's the case, then why would the node folks just make a potentially risky change before compatibility testing is finished? |
Since it hasn't been linked here yet, #18964 is the PR which adds v9 to that |
@MohammadHasham that did the trick for me too. |
I think that I have the same issue with node 9.2.0 npm WARN npm npm does not support Node.js v9.2.0 |
Yep same with 9.2.0 |
I am having similar issues as well. Not able to run npm after upgrading to Node 9.2.0
|
wow, node v9.0 has been released almost a month ago. the ignorance of the npm folks speaks volumes, specially after putting a lot of afford into catching up with yarn and trying to regain user trust. @ilovezfs is it possible to point the brew script to the node modified package? |
@dnalborczyk many workarounds are possible, but as you can see from this issue itself, they lead to chaos. |
@dnalborczyk No need to insult them. Keep it civil and just ask for a tag. |
@robcresswell you're joking, right? |
@dnalborczyk you should read, or re-read, the Code of Conduct |
I don't really see how the above is an insult, just my personal opinion on that matter. Not a single word or statement from npm regarding this issue, and I can give you guys plenty of references and cc's where people have asked for almost a month now. npm is backed by npm, Inc. - and I'm more referring to the corporate entity, than the open source project. Unfortunately npm is pretty much baked into node, and users are not given a choice of alternatives, and so here we are ... |
@dnalborczyk I'm not joking. I also don't think saying "it's my opinion" is a valid way of defending an insult. The team (who are humans, not corporate robots) are clearly overburdened (1000+ issues) so I'd assume there is more to the story than them just being "ignorant". Just request prioritisation politely and apply a workaround in the meantime. It's a little inconvenient, but that's life, especially when you're dealing with software that costs you no money or time. |
* chore: do not install latest npm on Node 9 see npm/npm#19019
👍 +1 on this issue |
I spoke to @MylesBorins about this, but I'm literally cooking up the next release of npm right now. It'll go into |
Thanks for the update and hard work @zkat! |
https://twitter.com/maybekatz/status/935357840872554496 And it's out. Please go ahead and try it out. We'll be watching for early warnings on breakage for the next week to make sure everything looks ok. Thanks y'all for your patience. It's been a hell of a couple of months for the team :s |
Thanks @zkat! You're awesome :) |
Hello, I'm stuck with npm 5.5.1 on Node.js 9.2.0, I can't update npm with "npm i -g npm" or "npm i -g npm@next", I'm getting this error :
|
Found a "solution" :
|
|
I've started having this
Are they related? My project worked fine previously, so I'm guessing ENOENT err is not about code, is it some conflict in software or a result of incompatible node/npm versions? I tried I think every solution offered in this thread, but can't get rid of |
@Evanto try doing |
|
Downloaded the 9.2.0 package from the NodeJS homepage and have ended up here... So looks like this is still an issue? |
@cloakedninjas Could you give some more information or open a new issue? Just commenting "me too" on a closed bug is not terribly helpful :) |
Unfortunately I didn't keep my shell output, but after some digging around node-gyp, it looks like my specific issue was related to deps of deps. Specifically webpack and fsevents, bumping to latest webpack release allowed me to install without issue. |
Node 9.2.1 + npm 5.6.0 using nvm seems to be all back to normal! |
|
I'm opening this issue because:
What's going wrong?
"npm install" gives an error after installing node.js v9.0.0
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/
C:\Program Files\nodejs\node.exe: src\node_zlib.cc:430: Assertion `args.Length() == 7 && "init(windowBits, level, memLevel, strategy, writeResult, writeCallback," " dictionary)"' failed.
How can the CLI team reproduce the problem?
Install node.js v9.0.0, open any project, type:
npm install
supporting information:
npm -v
prints: 5.5.1node -v
prints: v9.0.0npm config get registry
prints: npm WARN npm npm does not support Node.js v9.0.0The text was updated successfully, but these errors were encountered: