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

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