解决npm安装错误:No matching version found for [email protected]
1.问题描述
使用npm install安装项目依赖包的时候,报错:
npm ERR! A complete log of this run can be found in:
npm ERR! /Users/dragon/.npm/_logs/2018-12-19T11_45_03_469Z-debug.log
2.解决方法
从错误信息:No matching version found for [email protected]可以知道,是由于没有找到这个包的3.3.6版本。
首先去 https://www.npmjs.com/ 网站搜索这个包,看看是否发布了这个版本:
点击Versions查看这个包的所有历史版本。
查看是否有与你刚才install的版本,如果没有, 找一个你喜欢的版本重新install一下就行了