解决npm install版本不匹配问题: npm ERR! code ETARGET npm ERR! notarget No matching version found for

1.查看目标包的版本

npm view xxx

以nodemon包为例:npm view nodemon

终端执行结果为:

在这里插入图片描述

2.带上版本号重新安装

npm install nodemon@2.0.20即可成功

本文来自网络,不代表协通编程立场,如若转载,请注明出处:https://net2asp.com/a15002606d.html