通过npm下载vue-cli脚手架,由于源的问题一直报错:
...shasum check failed for...
设置国内镜像:
- config:
npm config set registry http://registry.cnpmjs.org npm info underscore (如果上面配置正确这个命令会有字符串response)
- 编辑 ~/.npmrc 加入下面内容:
registry = http://registry.cnpmjs.org
通过npm下载vue-cli脚手架,由于源的问题一直报错:
...shasum check failed for...
设置国内镜像:
npm config set registry http://registry.cnpmjs.org
npm info underscore (如果上面配置正确这个命令会有字符串response)
registry = http://registry.cnpmjs.org