新建一個文件夾,在該文件夾路徑下打開終端
1、>vue init webpack test //test 是新建的項目名稱,自己定義
2、
Project name test
? Project description A Vue.js project
? Author
? Vue build standalone
? Install vue-router? Yes
? Use ESLint to lint your code? No // 為了避免用嚴格模式,防止報許多錯誤
? Set up unit tests No //避免嚴格模式
? Setup e2e tests with Nightwatch? No //避免嚴格模式
? Should we run `npm install` for you after the project has been created? (recommended) npm
3、之后等待一段時間后,切換到 新項目文件夾下:cd test
4、然后:npm install
5、 安裝完畢:npm run dev