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
- 上一篇 »linux下安装nodejs npm环境
- 下一篇 »Vue.js 中集成 CSS 框架