当前位置:网站首页>Nuxt - create nuxt app
Nuxt - create nuxt app
2022-06-22 18:02:00 【Wangjiabin】
Preface
Be careful : This article uses
create-nuxt-appScaffold version is4.0, Other versions can also be used as a reference , Because it hasn't changed much .
First of all, you should ensure that the front-end environment is normal ,
There are no problems such as wrong packing report , Otherwise you need to solve these problems first .
First step
Be careful : Before that , You must ensure that you have installed npx(npx stay NPM edition 5.2.0 Installed by default ).
First , We need to use the scaffolding provided by the frame (create-nuxt-app) To create a project ,
Open anywhere cmd terminal , Execute the following create command :
npx create-nuxt-app project
Project name: project, If the creation fails, use yarn command .
The second step
After successful execution , The interface shown in the figure below will appear , Input y enter :

Then wait patiently for the installation of scaffold .

The third step
Be careful : The project name should not be marked with Chinese characters , Otherwise, unexpected mistakes may be caused .
Let's enter the project name , After that, press enter , As shown in the figure below :

You are using JS Development or use TS Development ? Up and down arrows move , Press enter after selection .

You use npm Or use it yarn Management package ?

What do you use UI frame ?

You choose Nuxt.js modular ( You can also join in the project later ), Suggested choice Axios.

Which code checking tool do you use ? If not, it is recommended to enter directly .

What test framework do you need to use ? Recommended election None, Give Way Nuxt I default to one .

You choose a rendering mode ( important ), If you don't understand , Please refer to This article .
If you are in a hurry and have no time to read , Please select "Universal(SSR / SSG)"

You select a deployment target , Most of them are server-side deployment , If you don't understand, choose the first one .

You select the deployment tool , If you don't understand, just press enter without selecting .

you Github name ? Just go straight back .

Choose your favorite version control system , recommend Git.

Be accomplished , Just wait patiently .
Run the project
The project configuration and creation have been completed , This time let's run .
Wait for the creation , We will receive the following command :
Be careful : If you are npm, Is displayed npm xxx

We followed the instructions , Execute sequentially :
cd project
yarn dev

Then wait .
After successful compilation , As shown in the figure below :

Open the returned link (http://localhost:3000/), Success is shown below :

边栏推荐
- Parallel通过XCM与Moonbeam集成,将PARA以及DeFi用例带入Moonbeam生态
- TypeScript(7)泛型
- Graduation season · undergraduate graduation thoughts -- the self-help road of mechanical er
- Short video with goods source code, save pictures to photo album / Gallery
- DAP事实表加工汇总功能应用说明
- Development mode of JSP learning
- 同花顺软件是什么?手机开户安全么?
- How to understand volatile
- 利用Inkscape转换为dxf文件的正确方法 svg导出dxf文件
- Ad20/altium Designer - oil for manhole cover
猜你喜欢

【人脸识别】基于GoogleNet深度学习网络的人脸识别matlab仿真

The world's first AR contact lens, the entrance of metauniverse is really opened this time?

Hello playwright: (7) simulate keyboard and mouse

Missing value handling

client-go gin的简单整合十-Update

You call this crap high availability?
![[face recognition] matlab simulation of face recognition based on googlenet deep learning network](/img/e8/050ca85542ccbf1402b84c5dbf6f5e.png)
[face recognition] matlab simulation of face recognition based on googlenet deep learning network

JSP learning (I) -- overview of JSP

STM32系列(HAL库)——F103C8T6硬件SPI点亮带字库OLED屏

math_ Angular function & inverse trigonometric function
随机推荐
推荐7款超级好用的终端工具 —— SSH+FTP
How can the new generation of HTAP databases be reshaped in the cloud? Tidb V6 online conference will be announced soon!
Quartus Prime 18.0软件安装包和安装教程
Defaultifempty for C # -linq source code analysis
AHA C language Chapter 6 God, a large string of numbers is approaching (lesson 26)
Social responsibility: GAC Honda advocates children's road traffic safety in "dream children's travel"
. Net release and support plan introduction
docker: Error response from daemon: Conflict. The container name “/mysql“ is already in use by conta
SOA面向服务的架构
抢先报名丨新一代 HTAP 数据库如何在云上重塑?TiDB V6 线上发布会即将揭晓!
Tasks and responsibilities of the test team and basic concepts of testing
[applet project development -- Jingdong Mall] subcontracting configuration of uni app development
Graduation season · undergraduate graduation thoughts -- the self-help road of mechanical er
同花顺软件是什么?手机开户安全么?
诺亚财富拟登陆港交所:第一季度业绩大幅下滑,曾踩雷“承兴案”
##Kibana+ELK集群日志处理
Network intelligent operation and maintenance helps improve operation and maintenance efficiency
How to understand volatile
synchronized实现原理
如何理解volatile