Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Should I upload "node_modules"?

I am making a web page, node_modules file is around 150 megabytes, should I upload it or not? Is there any way to make it smaller? I am using "filezilla" and it would take too long to upload it.

like image 861
Sucoms Avatar asked Oct 27 '25 17:10

Sucoms


1 Answers

Node modules is where all the external libraries you use for your application are kept. The list of those libraries should be mentioned in package.json file.

You should, typically, not upload node modules folder manually. They are the external libraries and are easily available to install separately. So, when moving files through filezilla, move everything but node modules. Then, in your server, simple run npm i before running the application.

like image 55
Sujil Maharjan Avatar answered Oct 29 '25 08:10

Sujil Maharjan



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!