本篇內(nèi)容介紹了“怎么使用npx創(chuàng)建一個Nuxt.js項目”的有關(guān)知識,在實際案例的操作過程中,不少人都會遇到這樣的困境,接下來就讓小編帶領(lǐng)大家學(xué)習一下如何處理這些情況吧!希望大家仔細閱讀,能夠?qū)W有所成!
10多年的許昌網(wǎng)站建設(shè)經(jīng)驗,針對設(shè)計、前端、開發(fā)、售后、文案、推廣等六對一服務(wù),響應(yīng)快,48小時及時工作處理。成都全網(wǎng)營銷推廣的優(yōu)勢是能夠根據(jù)用戶設(shè)備顯示端的尺寸不同,自動調(diào)整許昌建站的顯示方式,使網(wǎng)站能夠適用不同顯示終端,在瀏覽器中調(diào)整網(wǎng)站的寬度,無論在任何一種瀏覽器上瀏覽網(wǎng)站,都能展現(xiàn)優(yōu)雅布局與設(shè)計,從而大程度地提升瀏覽體驗。創(chuàng)新互聯(lián)建站從事“許昌網(wǎng)站設(shè)計”,“許昌網(wǎng)站推廣”以來,每個客戶項目都認真落實執(zhí)行。
$ npx create-nuxt-app my-first-nuxtjs
npx: 401 安裝成功,用時 43.891 秒
> Generating Nuxt.js project in /Users/popgis/projects/my-first-nuxtjs
? Project name my-first-nuxtjs
? Project description A Nuxt.js application for test.
? Use a custom server framework express
? Use a custom UI framework element-ui
? Choose rendering mode Universal
? Use axios module yes
? Use eslint yes
? Use prettier yes
? Author name popgis
? Choose a package manager npm
Initialized empty Git repository in /Users/popgis/projects/my-first-nuxtjs/.git/
> fsevents@1.2.4 install /Users/popgis/projects/my-first-nuxtjs/node_modules/fsevents
> node install
[fsevents] Success: "/Users/popgis/projects/my-first-nuxtjs/node_modules/fsevents/lib/binding/Release/node-v64-darwin-x64/fse.node" already installed
Pass --update-binary to reinstall or --build-from-source to recompile
> nodemon@1.18.5 postinstall /Users/popgis/projects/my-first-nuxtjs/node_modules/nodemon
> node bin/postinstall || exit 0
> nuxt@2.2.0 postinstall /Users/popgis/projects/my-first-nuxtjs/node_modules/nuxt
> opencollective || exit 0
:=.
-=+=: :-
.-=+++=: :++=.
.-+++++++=++++=.
.=+++++++****++++.
:=+++++++******++*+:
:=+++++++********++*+:
:=+++++++**********++*+-
-=+++++++*************+*+-.
.-=======+**************++++=.
.........::::::::::::::::::::.
Thanks for installing nuxtjs ????
Please consider donating to our open collective
to help us maintain this package.
Number of contributors: 152
Number of backers: 127
Annual budget: US$30,663
Current balance: US$5,806
???? Donate: https://opencollective.com/nuxtjs/donate
npm notice created a lockfile as package-lock.json. You should commit this file.
npm WARN eslint-plugin-vue@4.7.1 requires a peer of eslint@^3.18.0 || ^4.0.0 but none is installed. You must install peer dependencies yourself.
npm WARN acorn-jsx@5.0.0 requires a peer of acorn@^6.0.0 but none is installed. You must install peer dependencies yourself.
added 1111 packages from 543 contributors and audited 14617 packages in 59.616s
found 0 vulnerabilities
To get started:
cd my-first-nuxtjs
npm run dev
To build & start for production:
cd my-first-nuxtjs
npm run build
npm start
“怎么使用npx創(chuàng)建一個Nuxt.js項目”的內(nèi)容就介紹到這里了,感謝大家的閱讀。如果想了解更多行業(yè)相關(guān)的知識可以關(guān)注創(chuàng)新互聯(lián)網(wǎng)站,小編將為大家輸出更多高質(zhì)量的實用文章!