npm install安装时一直idealTree:npm: sill idealTree buildDeps解决方案(亲测有效)

文章目录

问题描述

今天在执行npm install指令时,出现一直卡 在npm install [..................] \ idealTree:ruoyi-ui: sill idealTree buildDeps我在网上查了一下解决 方案,大部分都是清除缓存,切换为淘宝镜像源或者是切换网络,但是都没有解决我的问题,下面我来详细的说一下我的解决方案

建议先来采用方案一 进行解决

解决方案

方案一(亲测可以)

  1. 采用新的镜像地址,进入cmd之后输入:

npm 的命令

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

yarn 的命令

javascript 复制代码
yarn config set registry https://registry.npmmirror.com
  1. 查看是否更改成功:

npm 的命令

javascript 复制代码
npm config get registry

yarn 的命令

javascript 复制代码
yarn config get registry

方案二

先清除缓存,在执行npm install

javascript 复制代码
npm cache clean --force
javascript 复制代码
npm install

方案三

切换为淘宝镜像源,然后再执行npm install

相关推荐
子兮曰12 小时前
OpenClaw入门:从零开始搭建你的私有化AI助手
前端·架构·github
吴仰晖12 小时前
使用github copliot chat的源码学习之Chromium Compositor
前端
1024小神12 小时前
github发布pages的几种状态记录
前端
朝朝暮暮an14 小时前
Day 3|Node.js 异步模型 & Promise / async-await(Part 1)
node.js
不像程序员的程序媛14 小时前
Nginx日志切分
服务器·前端·nginx
北原_春希15 小时前
如何在Vue3项目中引入并使用Echarts图表
前端·javascript·echarts
尽意啊15 小时前
echarts树图动态添加子节点
前端·javascript·echarts
吃面必吃蒜15 小时前
echarts 极坐标柱状图 如何定义柱子颜色
前端·javascript·echarts
O_oStayPositive15 小时前
Vue3使用ECharts
前端·javascript·echarts
竹秋…15 小时前
echarts自定义tooltip中的内容
前端·javascript·echarts