1
2
3
4
|
npm install -g cnpm --registry=https://registry.npm.taobao.org
--registry=https://registry.npm.taobao.org
cnpm install vue
cnpm install -g @vue/cli
|
1
2
3
4
5
6
7
8
9
|
npm install -g yarn
yarn --version
yarn config set registry https://registry.npm.taobao.org -g
yarn config set sass_binary_site http://cdn.npm.taobao.org/dist/node-sass -g
yarn global add @vue/cli
添加环境变量
yarn global dir
C:\Users\moe96\AppData\Local\Yarn\bin
|
vue create app
vue create elem
vue create echart

1
2
3
4
5
6
|
cnpm i vant -S
cnpm i axios -S
cnpm install echarts --save-dev
cnpm install echarts -S
yarn install
|
npm run serve
yarn serve
npm run build
yarn build