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


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?


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.


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


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.


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