Need to keep reinstalling modules

My project is “newpancakelistings”.

I have installed several modules that my project needs in order to work, including nodemailer.

Frequently I notice my project stops running, and the error is that it can’t find nodemailer (or another module.)

I resolve by opening the terminal and reinstalling nodemailer (“npm i nodemailer”). But it keeps happening every few days, and I need to reinstall again.

Any ideas?

Thanks

Try going to your package.json file and adding the package from there

2 Likes