M
M
Monkz2020-06-18 14:11:19
Nginx
Monkz, 2020-06-18 14:11:19

How to properly run nuxt.js?

Good afternoon!
There is a certain nuxt.js project.
The challenge is to run it via pm2 with:

pm2 start 'yarn start --hostname localhost --port 3000' --name NUXTPROJECT

Then nginx will proxy to port 3000.
The question is - is there any way to run the project without having a node_modules folder? I really don't want to keep 400 mega node modules on the production server.
Or, if possible, please indicate which folders are needed for a successful start of nuxt-a?
Thanks in advance!

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alex, 2020-06-18
@Kozack

The nuxt files and everything you need to get started are in node_modules. At most, this is the installation of only part of the dependencies
npm install --production
Well, eh

400 mega node modules
this is about what to use in your project and what not. What to download as a module, and what to implement manually.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question