前端技术之:使用npx创建一个Nuxt.js项目

本教程详细记录了使用npx创建首个Nuxt.js项目的全过程,包括项目配置、依赖安装及初始化Git仓库。项目选用Express作为自定义服务器框架,Element UI为UI框架,支持Universal渲染模式,并集成了Axios模块、ESLint和Prettier等工具。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

$ 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

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值