查看当前
yarn config get registry
默认
yarn config set registry https://registry.yarnpkg.com
腾讯
npm config set registry https://mirrors.tencent.com/npm/
npm install nrm -g; nrm add tencent https://mirrors.tencent.com/npm/; nrm use tencent;
先设置 教程
git config --global core.autocrlf false
再重新克隆项目
# 安装依赖
$ yarn install
# 启动服务 localhost:3000
$ yarn start
# build for production and launch server
$ yarn build
$ yarn preview
# 静态打包
$ yarn generate
For detailed explanation on how things work, check out Nuxt.js docs.