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

 

posted @ 2019-04-21 21:28  smileOHH  阅读(136)  评论(0编辑  收藏  举报