開發與維運

win10使用最新的vuecli4.x創建vue項目

1.安裝依賴
win10安裝node.js
image.png
2.安裝vue/cli和vue/cli-service-global
npm install -g @vue/cli
image.png
npm install -g @vue/cli-service-global
image.png
3.安裝驗證
vue --version
image.png
4.命令行創建項目
vue create hello-world
建議修改國內源(y)和使用默認設置(回車)創建項目
image.png
image.png
image.png
5.命令行運行項目
cd hello-world
npm run serve
image.png
image.png
6.安裝eslint(失敗)
vue add eslint
image.png
7.圖形界面創建項目
vue ui
image.png
手動創建測試項目
image.png

Leave a Reply

Your email address will not be published. Required fields are marked *