Vue项目npm install报错

743 阅读1分钟

vue2的旧项目。

错误信息

npm ERR! code ERR_SOCKET_TIMEOUT
npm ERR! errno ERR_SOCKET_TIMEOUT
npm ERR! network request to http://repo.ctbiyi.com:6442/repository/npmall/xmldom/-/xmldom-0.1.31.tgz failed, reason: Socket timeout
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'

安装nvm-windows来管理node版本,切换到低版本(如果知道旧项目创建的node版本,那就用那个版本的) nvm-windows的安装这里就不赘述了,网上很多,自行百度。