npm安装vue超时(ERR! errno ETIMEDOUT)

1、错误

vue-cli 安装过程中报错npm ERR! code EPERM npm ERR! errno -4048 npm ERR! syscall scandir

2、解决

1、采用cnpm镜像就可以解决了。
输入:

npm install -g cnpm --registry=https://registry.npm.taobao.org

重新安装

npm install vue-cli -g

2、清除npm缓存

npm chache clean --force
posted @ 2021-06-10 00:12  .爬行的蜗牛  阅读(1646)  评论(0编辑  收藏  举报
Document