vue創建新項目


新建一個文件夾,在該文件夾路徑下打開終端

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

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM