接收新项目拉取代码后安装依赖时npm install提示request to https://registry.npmjs.org/vue-cli failed, reason: connect ETIMEDOUT 104.16.19.35:443
提示具体信息如下:
npm ERR! code ETIMEDOUT
npm ERR! syscall connect
npm ERR! errno ETIMEDOUT
npm ERR! network request to https://registry.npmjs.org/vue-cli failed, reason: connect ETIMEDOUT 104.16.19.35:443
npm ERR! network This is a problem related to network connectivity.
npm ERR! network In most cases you are behind a proxy or have bad network settings.
npm ERR! network
npm ERR! network If you are behind a proxy, please make sure that the
npm ERR! network 'proxy' config is set properly. See: 'npm help config'
我有搜索别人的解决方案,说可能是npm版本问题,未解决。
最终身边的老手说可能是淘宝镜像的问题,于是,重新安装淘宝镜像
npm config set registry https://registry.npm.taobao.org
重新npm install安装依赖,成功啦