npm 不支持 Node.js v9.0.0 [英] npm does not support Node.js v9.0.0

查看:51
本文介绍了npm 不支持 Node.js v9.0.0的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我刚刚升级了我的项目以使用 Node.js v9.0.0.当我使用 npm 开始我的项目时,它告诉我应该升级到较新的 Node 版本,但我相信这是最新版本.我也相信我使用的是最新版本的 npm (5.5.1).

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?

这里是完整的警告:

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)

推荐答案

我刚刚升级到 Node v9 并遇到了同样的问题.此此处有一个 Github 问题.

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

按照卸载 npm 全局实例的建议为我解决了这个问题,使用:

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

npm uninstall -g npm

这篇关于npm 不支持 Node.js v9.0.0的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆