方式一:
npm cache clean --force
npm config set registry https://registry.npmmirror.com
npm install
下面是簡(jiǎn)單的解釋:
??1、強(qiáng)制清理 npm 緩存
npm cache clean --force
??2、設(shè)置鏡像源文章來源:http://www.zghlxwxcb.cn/news/detail-829742.html
npm config set registry https://registry.npmmirror.com
??3、重新 install文章來源地址http://www.zghlxwxcb.cn/news/detail-829742.html
npm install
方式二:
npm config set registry https://registry.npm.taobao.org
npm config get registry
npm install
到了這里,關(guān)于npm install 一直卡著不動(dòng)如何解決的文章就介紹完了。如果您還想了解更多內(nèi)容,請(qǐng)?jiān)谟疑辖撬阉鱐OY模板網(wǎng)以前的文章或繼續(xù)瀏覽下面的相關(guān)文章,希望大家以后多多支持TOY模板網(wǎng)!