DEV Community

Discussion on: Understanding the package.json file

Collapse
 
mauricioarangoosorio profile image
mauricioarangoosorio

Hi. Thank you So much for the through overview. Very useful for a beginner like me.
I’m left with a question: can I share the config.js file with other devs so that they have the same configuration I do? And if so, how they would go about setting their local environment once they have the config file. I can see this also being useful when I’m starting a new project that has the same requirements as an existing one. Thank you so much.

Collapse
 
easybuoy profile image
Ekunola Ezekiel

Hi, by config.js I assume you mean package.json file. If so, yes you can share the package.json file with other developers. What they need to do is have Nodejs installed on their device, and then run npm install to download the packages listed in the package.json file.

Collapse
 
mauricioarangoosorio profile image
mauricioarangoosorio

My bad, yes, I meant package.json. Thanks so much for answering the question, I appreciate it a lot –another step forward here. Have a great day!