Yarn 安装及代理设置
npm install --global yarn
yarn --version
配置代理
yarn config set proxy http://localhost:10809
yarn config set https-proxy http://localhost:10809
npm install --global yarn
yarn --version
yarn config set proxy http://localhost:10809
yarn config set https-proxy http://localhost:10809
环境搭建:
1,安装nodejs,https://nodejs.org/en/download/
2,安装国内源的npm:cnpm,npm install -g cnpm --registry=https://registry.npmmirror.com
3,安装 webpack:cnpm install webpack-cli -g
npm install webpack
4,安装 vue
npm install vue
解决 node-sass 依赖 Python2 的问题:
npm uninstall node-sass
npm i node-sass --sass_binary_site=https://npm.taobao.org/mirrors/node-sass/