Why do I have to reinstall node modules every time app boots up?


#1

Every time I visit a project after a couple of days there’s an error. The error is always because it can’t find the package I’m importing and the code breaks. Why is this?


#2

Which package do you need to re-install? Let us know the project name and we’ll take a look. If your project is private, either make it public temporarily or DM me a join link so we can view the code. Thanks.


#3

Thanks Gareth! It’s my project at https://oasis-atom.glitch.me/


#4

And which package do you need to reinstall? If you’re referring to ‘Error: Cannot find module ‘./config.json’’, then it looks like it’s because the config.json file doesn’t exist at that location.


#5

I didn’t see that error but I’ll fix it. The module it says it’s missing is express.