Nuxt is packaged and deployed to run in the local environment

Execute at the project terminal first

npm run build

pack it
insert image description here

Then create a folder
insert image description here
and go to nuxt.config.js under the nuxt project to specify the port it occupies.
insert image description here
Here I specify that it occupies port 80 by default.
Then pull these things in the project to a new folder
insert image description here
and then the terminal accesses this new directory.

npm i

insert image description here
After the dependencies are installed, execute npm run start on the terminal to start
insert image description here
, and then we copy this link and access it with a browser,
insert image description here
which is also very smooth
insert image description here

Guess you like

Origin blog.csdn.net/weixin_45966674/article/details/130073677