You are viewing a single comment's thread from:

RE: Vue.js实战笔记

in #starnote4 years ago

Vue Cli

1.使用cnpm, 注册为国内的镜像,使用cnpm代替npm
npm install -g cnpm --registry=https://registry.npm.taobao.org  

2.cnpm install -g @vue/cli
vue --version

3.创建一个新项目
vue create hello-world

//babel router vuex 选择这三项就可以了
//sass可以不选填,它是css语法的拓展
//eslink 是检查语法的,可以不用

4. 运行
cnpm run serve

5. 打包
cnpm run build