解决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 [email protected]即可成功

猜你喜欢

转载自blog.csdn.net/qq_46108215/article/details/129274029
今日推荐