0
点赞
收藏
分享

微信扫一扫

npm报错之package-lock.json found. 问题和淘宝镜像源过期问题

山竹山竹px 2024-02-17 阅读 9

目录

方式一:

npm cache clean --force
npm config set registry https://registry.npmmirror.com
npm install

🍀1、强制清理 npm 缓存

 npm cache clean --force

🍀2、设置镜像源

npm config set registry https://registry.npmmirror.com

🍀3、重新 install

npm install

方式二:

npm config set registry https://registry.npm.taobao.org
npm config get registry
npm install
举报

相关推荐

0 条评论