Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to create a Nuxt.js project using npx

2025-04-14 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

Shulou(Shulou.com)06/02 Report--

This article introduces the knowledge of "how to use npx to create a Nuxt.js project". In the operation of actual cases, many people will encounter such a dilemma, so let the editor lead you to learn how to deal with these situations. I hope you can read it carefully and be able to achieve something!

$npx create-nuxt-app my-first-nuxtjs

Npx: 401was successfully installed in 43.891 seconds.

> 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$30663

Current balance: US$5806

? 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

This is the end of "how to use npx to create a Nuxt.js project". Thank you for reading. If you want to know more about the industry, you can follow the website, the editor will output more high-quality practical articles for you!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Development

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report