1、问题描述

No matching version found for caniuse-lite@^1.0.30001157
...
npm ERR! notarget It was specified as a dependency of 'browserslist'

2、解决方法:

1)检查npm源里的确没有caniuse-lite@^1.0.30001157的包,因为是内网,无法更换npm源,从外面下载了caniuse-lite@^1.0.30001157的包拷到node_modules目录下
2)npm i browserslist安装browserslist之后,再npm install,问题解决

参考:
解决npm安装错误:No matching version found for event-stream@3.3.6
No matching version found for caniuse-lite@^1.0.30001004


mmango
0 声望0 粉丝