问题:npm i下载依赖报错信息如下:
解决:①②(①没解决我的问题,②解决了我的问题)
第一种:
1、设置代理关闭
npm config set proxy false
2、清除缓存
npm cache clean
3、又执行下面语句
npm cache clean --force
第二种:
1、查看npm镜像设置
npm config get registry
2、将npm设置为淘宝镜像
npm config set registry https://registry.npm.taobao.org
3、再次查看npm镜像设置
npm config get registry
这次npm i 就可以了。