当前位置:网站首页>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 :

边栏推荐
- Make it more automatic to transfer slow logs and audit logs of RDS (for MySQL) databases to OBS across spaces
- [face recognition] matlab simulation of face recognition based on googlenet deep learning network
- 诺亚财富拟登陆港交所:第一季度业绩大幅下滑,曾踩雷“承兴案”
- Using stream API instead of SQL
- Quartus prime 18.0 software installation package and installation tutorial
- TypeScript(7)泛型
- 中国移动手机用户缓慢增长,但努力争取高利润的5G套餐用户
- 网络智能运维助力运维效率提升
- Interview shock 58: Six differences among truncate, delete and drop!
- 如何做好研发效能度量及指标选取
猜你喜欢
![[small program project development -- Jingdong Mall] rotation chart of uni app development](/img/9b/503919129a2c544dd6143c6b47a2c4.png)
[small program project development -- Jingdong Mall] rotation chart of uni app development

MTLs guidelines for kubernetes engineers

TypeScript(7)泛型

Xshell 7(SSH远程终端工具) v7.0.0109 官方中文正式版(附文件+安装教程)

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

Ad20/altium Designer - oil for manhole cover
![[step 1 of advanced automated testing] 1 minute to introduce you to automated testing](/img/00/9647d552749092954a91bd84307773.png)
[step 1 of advanced automated testing] 1 minute to introduce you to automated testing

Binary tree practice the second bullet

Nuxt - Universal(SSR / SSG)/ Single Page App(渲染模式)

clickhouse 21.x 集群四分片一副本部署
随机推荐
Gridhome, a must-have static site generator for beginners
网络智能运维助力运维效率提升
Quickly master asp Net authentication framework identity - user registration
Is the CSC securities account given by qiniu school true? Is it safe to open an account
UI automation positioning edge -xpath actual combat
Short video with goods source code, save pictures to photo album / Gallery
d的dip1000,1
当线上线下的融合加速,当信息对接渠道的多样化,传统意义上的中心将没有必要
What is flush software? Is it safe to open a mobile account?
clickhouse 21. X cluster four piece one copy deployment
How can the new generation of HTAP databases be reshaped in the cloud? Tidb V6 online conference will be announced soon!
Arrays Aslist uses bug
数据库行业分析:从全球IT产业趋势到国产数据库发展之路
Graduation season · undergraduate graduation thoughts -- the self-help road of mechanical er
clickhouse 21.x 集群四分片一副本部署
The principle of locality in big talk
[recruitment] [Beijing Zhongguancun / remote] [tensorbase][open source data warehouse] and other people do one thing
跨平台Brave浏览器
[psychology] emotional psychology - collision between contemporary thoughts and traditional thoughts (this article will be continuously updated from time to time)
Principle of synchronized implementation