npm install 一直卡着不动如何解决

目录

方式一:

bash 复制代码
npm cache clean --force
npm config set registry https://registry.npmmirror.com
npm install

下面是简单的解释:

🍀1、强制清理 npm 缓存

bash 复制代码
 npm cache clean --force

🍀2、设置镜像源

bash 复制代码
npm config set registry https://registry.npmmirror.com

🍀3、重新 install

bash 复制代码
npm install

方式二:

bash 复制代码
npm config set registry https://registry.npm.taobao.org
npm config get registry
npm install
相关推荐
未来之窗软件服务13 分钟前
未来之窗昭和仙君(六十九)前端收银台行为异常检测—东方仙盟练气
前端·仙盟创梦ide·东方仙盟·昭和仙君
大叔编程奋斗记30 分钟前
两个日期间的相隔年月计算
前端·salesforce
上海合宙LuatOS1 小时前
LuatOS核心库API——【io】 io操作(扩展)
java·服务器·前端·网络·单片机·嵌入式硬件·物联网
盖头盖2 小时前
【vm沙箱逃逸】
node.js
GISer_Jing2 小时前
Taro多端开发
前端·react.js·taro
未来龙皇小蓝3 小时前
RBAC前端架构-04:设置代理及开发配置
前端·vue.js
祈安_3 小时前
深入理解指针(一)
c语言·前端
SuperEugene3 小时前
对象数组的排序与分组:sort / localeCompare / 自定义 compare
前端·javascript·面试
扶苏10024 小时前
“解构”与“响应”的博弈——深入剖析 Vue 3 的 toRef 与 toRefs
前端·javascript·vue.js
icestone20004 小时前
使用Cursor开发大型项目的技巧
前端·人工智能·ai编程