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

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

问题描述

我更新到最新的节点 v9.1.0,现在 npm 不起作用了.

I updated to the latest node v9.1.0 and now npm doesn't work.

npm WARN npm npm 不支持 Node.js v9.1.0

npm WARN npm npm does not support Node.js v9.1.0

推荐答案

事实证明当前安装的 npm 与新的 node 不兼容,并且有一个硬时间更新.

It turns out that the current installed npm is not compatible with the new node and has a hard time updating.

解决方案是卸载npm,然后重新安装node,其中将包含正确版本的npm.

The solution is to uninstall npm and then reinstall node which will contain the correct version of npm.

方法如下:

  1. 卸载npm.

Mac:
sudo npm uninstall -g npm

Windows:
npm uninstall -g npm

  • https://nodejs.org

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

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