搭建項(xiàng)目
1.安裝node.js
2.全局安裝 vue-cli ==> npm install --global vue-cli (檢測(cè)是否安裝好vue ==> vue --version?)
3.創(chuàng)建項(xiàng)目框架 ==> cd 想要放的位置 ==> vue init webpack my-project (my-project為自定義項(xiàng)目名)
4.安裝依賴(lài) ==> npm install
5.開(kāi)啟項(xiàng)目 ==> npm run dev
tips:
1.npm run dev之后自動(dòng)打開(kāi)網(wǎng)頁(yè)
config => index.js =>?autoOpenBrowser:true