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

方式一:

npm cache clean --force
npm config set registry https://registry.npmmirror.com
npm install

下面是简单的解释:

🍀1、强制清理 npm 缓存

 npm cache clean --force

🍀2、设置镜像源

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

🍀3、重新 install

npm install

方式二:

npm config set registry https://registry.npm.taobao.org
npm config get registry
npm install

相关推荐

  1. npm install 一直如何解决

    2024-02-17 09:06:01       48 阅读
  2. 【已解决】npm install的情况

    2024-02-17 09:06:01       47 阅读
  3. npm 安装时在 sill idealTree buildDeps

    2024-02-17 09:06:01       49 阅读
  4. vscode编辑keil工程 5. vscode 提交git一直转圈圈

    2024-02-17 09:06:01       23 阅读
  5. npm install 卡住的六种解决方法

    2024-02-17 09:06:01       67 阅读

最近更新

  1. docker php8.1+nginx base 镜像 dockerfile 配置

    2024-02-17 09:06:01       94 阅读
  2. Could not load dynamic library ‘cudart64_100.dll‘

    2024-02-17 09:06:01       100 阅读
  3. 在Django里面运行非项目文件

    2024-02-17 09:06:01       82 阅读
  4. Python语言-面向对象

    2024-02-17 09:06:01       91 阅读

热门阅读

  1. C++面经

    2024-02-17 09:06:01       62 阅读
  2. 【微服安全】API密钥和令牌与微服务安全的关系

    2024-02-17 09:06:01       54 阅读
  3. 【无标题】

    2024-02-17 09:06:01       47 阅读
  4. 算法训练营day29, 贪心算法3

    2024-02-17 09:06:01       58 阅读
  5. transformer的原理

    2024-02-17 09:06:01       54 阅读
  6. Python循环语句——continue和break

    2024-02-17 09:06:01       47 阅读