解决npm install 卡在idealTree: timing idealTree Completed的问题

edwin99
edwin99
2024-02-08 04:00
125 阅读
0 评论
文章封面
目录
正在加载目录...

首先怀疑是代码问题,依赖包卡主 尝试:

1. 换淘宝镜像: 换成了旧镜像,显示证书过期

2. 换新镜像 - npm config list 发现是registry = "https://registry.npm.taobao.org/"

- npm cache clean --force强制删缓存显示

npm WARN using --force

Recommended protections disabled.

- 用npm cache verify来解决强删缓存失败的问题:

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

npm config list

再次检查发现已经换掉了

npm install或者npm install --force npm run dev

3. 尝试升级 npm install -g npm

评论区 (0)

登录后参与评论

暂无评论,抢沙发吧!