npm WARN cli npm v9.1.2 does not support Node.js v14.12.0. You should probably upgrade to解决方法

【现象】

C:\Users\Administrator>npm -v
npm WARN cli npm v9.1.2 does not support Node.js v14.12.0. You should probably upgrade to a
npm WARN cli newer version of node as we can't make any promises that npm will work with this
npm WARN cli version. This version of npm supports the following node versions: `^14.17.0 ||
npm WARN cli ^16.13.0 || >=18.0.0`. You can find the latest version at https://nodejs.org/.
9.1.2

【原因分析】

npm版本跟node版本不对应,例如这个高于node版本,一般是如下几个原因:

1.来回安装node版本,node没有卸载干净,安装旧版本时会出现这问题

2.安装node后,单独对npm升级过

【解决方法】

1.来回安装node版本,node没有卸载干净,安装旧版本时会出现这问题

解决方法:安装npm对应的node版本后,安装后,通过npm uninstall -g npm回到node默认的npm版本,再卸载node就能卸载干净了。

2.安装node后,单独对npm升级过

执行npm uninstall -g npm命令。

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

秋9

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值