场景
- 最近在部署负载均衡,所以需要在新服务器上部署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