npm WARN registry Unexpected warning for https://registry.npmjs.org/: Miscellaneous Warning ECONNRES

文章目录

      • 场景
      • 解决

场景

  • 最近在部署负载均衡,所以需要在新服务器上部署laravel项目, 之前开发机器上使用的是npm 6.5; 新机器使用的是npm 6.6, 执行npm install 报错
    • npm WARN registry Unexpected warning for https://registry.npmjs.org/: Miscellaneous Warning ECONNRESET: request to https://registry.npmjs.org/@fortawesome%2ffontawesome-free failed, reason: Client network socket disconnected before secure TLS connection was established

解决

  • rm package-lock.json
  • npm cache clear --force

你可能感兴趣的:(web,vue)