安裝Vue.js腳手架 vue-cli
阿新 • • 發佈:2019-01-09
1.首先來到Vue.js的gthub頁面 點選Vue-ci
照著readme一路敲就好
tinghou$ vue init webpack vuetestdemo
? Project namevuetestdemo
? Project descriptionA Vue.js project
? Author
? Vue build standalone
? Install vue-router?Yes
? Use ESLint to lint your code?Yes
? Pick an ESLint presetStandard
? Setup unit tests No
? Setup e2e tests with Nightwatch?No
vue-cli· Generated "vuetestdemo".
To get started:
cd vuetestdemo
npm install
npm run dev
Documentation can be found at https://vuejs-templates.github.io/webpack
開啟工程依賴檔案,在這裡面加入需要的依賴庫,然後 npm install 命令即可
bogon:vuetestdemo tinghou$ npm install
up to date in 40.112s
bogon:vuetestdemo tinghou$