npm安装webpack时遇到卡顿的情况

公子初心
2024-03-21 / 0 评论 / 31 阅读 / 正在检测是否收录...

npm安装webpack时遇到卡顿的情况
idealTree:webpackdemo: sill idealTree buildDeps
解决办法:

  1. 删除npmsrc 清除缓存 命令行找到其所在位置,删除此文件
    lu0n0dgs.png

      npm config get userconfig
  2. 清除缓存

     npm cache clear --force
  3. 有可能是之前的镜像源停止解析了,所有要更换最新的
    lu0n4ux0.png

     npm config set registry https://registry.npmmirror.com
    1. 查看当前镜像源确保更换成功

    lu0n6i83.png

    npm config get registry
  4. 重新安装
    lu0n8d8k.png
    lu0n8pyt.png

    npm i webpack webpack-cli --sav-dev
0

评论 (0)

取消