【发布时间】:2021-03-24 23:26:28
【问题描述】:
所以基本上我正在尝试使用vue create vue-first-app 设置一个新的 Vue 项目,我最终在下面出现了这个错误。我尝试使用 npm install -timeout=9999999 增加超时。我还尝试使用npm cache clean --force 清理 npm Cashe,但没有帮助。有谁知道解决这个问题的方法吗?
Vue CLI v4.5.9
✨ Creating project in /home/marius/vue/vue-first-app.
???? Initializing git repository...
⚙️ Installing CLI plugins. This might take a while...
npm ERR! code ERR_SOCKET_TIMEOUT
npm ERR! errno ERR_SOCKET_TIMEOUT
npm ERR! request to https://registry.npm.taobao.org/mkdirp failed, reason: Socket timeout
npm ERR! A complete log of this run can be found in:
npm ERR! /home/marius/.npm/_logs/2020-12-14T09_54_21_447Z-debug.log
ERROR command failed: npm install --loglevel error --legacy-peer-deps
【问题讨论】:
-
遇到同样的问题!