vue--项目创建(特简单)

安装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

//安装路由

cnpm install vue-router --save

 

//安装jquery

cnpm install jquery --save

 

安装axios

cnpm install  axios --save 

 

//热启动服务

cnpm run dev

 

大功告成

 

posted @ 2019-05-22 15:08  胡先生爱大家  阅读(469)  评论(0编辑  收藏  举报