错误如下
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 ERR! A complete log of this run can be found in:

我印象中是没有使用代理的,网上查询的清楚缓存不管用,然后换代理

npm config set registry https://registry.npm.taobao.org

原先的代理已经不管用了,不清楚为什么网上还是在推荐

posted on 2022-11-16 11:31  代码书写人生  阅读(6894)  评论(0编辑  收藏  举报