問題描述
今天在執(zhí)行
npm install指令時,出現(xiàn)一直卡 在npm install [..................] \ idealTree:ruoyi-ui: sill idealTree buildDeps
,我在網(wǎng)上查了一下解決 方案,大部分都是清除緩存,切換為淘寶鏡像源或者是切換網(wǎng)絡(luò),但是都沒有解決我的問題
,下面我來詳細(xì)的說一下我的解決方案
建議先來采用方案一 進(jìn)行解決
解決方案
方案一(親測可以)
- 采用新的鏡像地址,進(jìn)入cmd之后輸入:
npm 的命令
npm config set registry https://registry.npmmirror.com
yarn 的命令
yarn config set registry https://registry.npmmirror.com
- 查看是否更改成功:
npm 的命令
npm config get registry
yarn 的命令
yarn config get registry
方案二
先清除緩存,在執(zhí)行npm install
文章來源:http://www.zghlxwxcb.cn/news/detail-856138.html
npm cache clean --force
npm install
方案三
切換為淘寶鏡像源,然后再執(zhí)行npm install
文章來源地址http://www.zghlxwxcb.cn/news/detail-856138.html
到了這里,關(guān)于npm install安裝時一直idealTree:npm: sill idealTree buildDeps解決方案(親測有效)的文章就介紹完了。如果您還想了解更多內(nèi)容,請在右上角搜索TOY模板網(wǎng)以前的文章或繼續(xù)瀏覽下面的相關(guān)文章,希望大家以后多多支持TOY模板網(wǎng)!