說明:這只是對于項(xiàng)目的記錄,如有對nuxt的詳細(xì)需求請走https://zh.nuxtjs.org/guide/installation
1.這里我采用了npx安裝(搭建nuxt的前提是要有node)
進(jìn)入cmd輸入
npx create-nuxt-app <項(xiàng)目名>//注:此處項(xiàng)目名為可選項(xiàng)吴汪,如果不寫就是當(dāng)前目錄辐赞,寫了就會創(chuàng)建新的文件夾
然后會等待----嚶嚶嚶--等待。。劣针。。好了出現(xiàn)一些選項(xiàng)(復(fù)制官網(wǎng)的鏈接在頭部)
1.在集成的服務(wù)器端框架之間進(jìn)行選擇:
選擇第一個
* None (Nuxt默認(rèn)服務(wù)器)
* [Express](https://github.com/expressjs/express)
* [Koa](https://github.com/koajs/koa)
* [Hapi](https://github.com/hapijs/hapi)
* [Feathers](https://github.com/feathersjs/feathers)
* [Micro](https://github.com/zeit/micro)
* [Adonis](https://github.com/adonisjs/adonis-framework) (WIP)
繼續(xù)等待亿扁。捺典。。从祝。哦.......這里不用等
2.選擇您喜歡的UI框架(也是選項(xiàng)) 我當(dāng)然是為element轉(zhuǎn)身 所以我選擇element
* None (無)
* [Bootstrap](https://github.com/bootstrap-vue/bootstrap-vue)
* [Vuetify](https://github.com/vuetifyjs/vuetify)
* [Bulma](https://github.com/jgthms/bulma)
* [Tailwind](https://github.com/tailwindcss/tailwindcss)
* [Element UI](https://github.com/ElemeFE/element)
* [Ant Design Vue](https://github.com/vueComponent/ant-design-vue)
* [Buefy](https://buefy.github.io/)
3.選擇你想要的Nuxt模式 (Universal or SPA)第一個
添加 axios module 以輕松地將HTTP請求發(fā)送到您的應(yīng)用程序中襟己。(選擇axios)
添加 EsLint 以在保存時代碼規(guī)范和錯誤檢查您的代碼。
6.添加 Prettier 以在保存時格式化/美化您的代碼
好啦所有的都走完了牍陌,然后擎浴!cd到你創(chuàng)建的項(xiàng)目去或者你沒有創(chuàng)建新的目錄就不cd
$ cd <project-name>
$ npm run dev