#本博客基於已經搭建好環境依賴
進入cmd
C:\Users\97231>
md 命令 創建文件夾
cd 命令 進入相關目錄
安裝項目
vue init webpack first_vue
控制檯顯示
提示目錄已存在,是否繼續:Y
Project name(工程名):回車
Project description(工程介紹):回車
Author:作者名
Vue build(是否安裝編譯器):回車
Install vue-router(是否安裝Vue路由):回車
Use ESLint to lint your code(是否使用ESLint檢查代碼,我們使用idea即可):n
Set up unit tests(安裝測試工具):n
Setup e2e tests with Nightwatch(測試相關):n
Should we run `npm install` for you after the project hasbeen created? (recommended):選擇:No, I will handle thatmyself
進入項目目錄
cd first_vue
初始化項目(如果是移入新的項目,請進行初始化操作,下載新項目的依賴包
cnpm install
運行項目
cnpm run dev