解决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]
即可成功
npm view xxx
以nodemon包为例:npm view nodemon
终端执行结果为:
npm install [email protected]
即可成功