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
窘迫的日子里,却总是有它好玩的地方