vue-cli 使用步骤

1、安装vue-cli:  cnpm install vue-cli -g

2、初始化: vue init webpack-simple [项目名称] 或 vue init webpack [项目名称]

3、安装依赖: cd  [项目名称]   然后 cnpm install

4、运行项目: npm run dev

5、打包: npm run build

6、其他:  

  安装路由: cnpm install vue-router -s

  安装axios: cnpm install axios -s

猜你喜欢

转载自www.cnblogs.com/kerryw/p/8908259.html