相关推荐recommended
解决npm install版本不匹配问题: npm ERR! code ETARGET npm ERR! notarget No matching version found for
作者:mmseoamin日期:2023-11-30

1.查看目标包的版本

npm view xxx

以nodemon包为例:npm view nodemon

终端执行结果为:

解决npm install版本不匹配问题: npm ERR! code ETARGET npm ERR! notarget No matching version found for,在这里插入图片描述,第1张

2.带上版本号重新安装

npm install nodemon@2.0.20即可成功