es6学习笔记2

0 查询npm版本:npm -v //如果<3.0.8
安装最新版本:npm i npm g

1.安装webpack :(全局安装)//查看版本:webpack -v
npm install webpack -g
2.安装vue .js //查看版本:vue -V
npm install vue -g

3.安装vue命令行工具
npm install -g vue-cli
4.创建项目:
vue init webpack es6
? Project name ess6
? Project description es6
? Author jasmine-na <[email protected]>
? Vue build standalone
? Install vue-router? Yes
? Use ESLint to lint your code? No
? Setup unit tests with Karma + Mocha? Yes
? Setup e2e tests with Nightwatch? Yes

5.cd es6
6.npm install
7.npm run dev
8.浏览器访问:http://localhost:8080

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章