VUE 安装及项目创建

Vue.js

安装cnpm

npm install -g

镜像

cnpm --registry=https://registry.npm.taobao.org 

安装 vue.js

cnpm install -g vue-cli

cnpm cache clean —force

cnpm install webpack -g

//打开要创建的项目路径目录,创建项目

vue init webpack-simple <项目名>

cd <项目名>

//安装路由

cnpm install vue-router —save

//安装jquery

cnpm install jquery --save 

//热启动服务

cnpm run dev

猜你喜欢

转载自www.cnblogs.com/wjohh/p/10747073.html