ERROR: npm is known not to run on Node.js v
ERROR: npm is known not to run on Node.js v
每次我打开终端 window,我都会得到这个(甚至在输入任何内容之前):
ERROR: npm is known not to run on Node.js v4.1.2
Node.js 4 is supported but the specific version you're running has
a bug known to break npm. Please update to at least 4.7.0 to use this
version of npm. You can find the latest release of Node.js at https://nodejs.org/
nvm is not compatible with the npm config "prefix" option: currently set to ""
Run `npm config delete prefix` or `nvm use --delete-prefix v4.1.2 --silent` to unset it.
我从来都不是 运行 节点 4 的版本,但无论如何我按照我在网上找到的一些非常彻底的步骤完全删除了 node.js,然后从网站上重新安装到版本 8.11.2 (node -v
给我 v8.11.2)但警告仍然出现
直到我的 npm 在尝试使用 create-react 时开始严重出错,我才对它给予太多关注,用 npm audit
给我大量的安全警告并且不让我更新到指示的模块版本.
我已经尝试了所有方法,重新安装 npm、重新安装 node 等,我担心它现在会干扰我的应用程序。
(这里是 nvm 维护者)
如果你能让 node
工作,这样 nvm current
就不会说 "none" 或 "system",那么你就可以 运行 nvm install-latest-npm
以确保您拥有实际适用于您的节点版本的最新版本的 npm。
另外,节点 4.1.2 已停产 - 如果这是您的系统版本,您可能需要完全卸载它。
如果您仍然遇到问题,请在 http://nvm.sh
上提交问题
每次我打开终端 window,我都会得到这个(甚至在输入任何内容之前):
ERROR: npm is known not to run on Node.js v4.1.2
Node.js 4 is supported but the specific version you're running has
a bug known to break npm. Please update to at least 4.7.0 to use this
version of npm. You can find the latest release of Node.js at https://nodejs.org/
nvm is not compatible with the npm config "prefix" option: currently set to ""
Run `npm config delete prefix` or `nvm use --delete-prefix v4.1.2 --silent` to unset it.
我从来都不是 运行 节点 4 的版本,但无论如何我按照我在网上找到的一些非常彻底的步骤完全删除了 node.js,然后从网站上重新安装到版本 8.11.2 (node -v
给我 v8.11.2)但警告仍然出现
直到我的 npm 在尝试使用 create-react 时开始严重出错,我才对它给予太多关注,用 npm audit
给我大量的安全警告并且不让我更新到指示的模块版本.
我已经尝试了所有方法,重新安装 npm、重新安装 node 等,我担心它现在会干扰我的应用程序。
(这里是 nvm 维护者)
如果你能让 node
工作,这样 nvm current
就不会说 "none" 或 "system",那么你就可以 运行 nvm install-latest-npm
以确保您拥有实际适用于您的节点版本的最新版本的 npm。
另外,节点 4.1.2 已停产 - 如果这是您的系统版本,您可能需要完全卸载它。
如果您仍然遇到问题,请在 http://nvm.sh
上提交问题