Running on your computer
“Module not found” after pulling changes
- What you see
- After a pull or switching branch, the app fails with
Module not foundorCannot find module. - Why it happens
- The project now uses a package that isn't installed on your computer yet.
- How to fix it
- Ask your agent to run
npm install. - Start the app again.
- Ask your agent to run
Message for your agent
I get “Module not found”. Run npm install, restart the app and tell me which package was missing and why we need it.
Tip
How to prevent it: After every pull, your agent installs dependencies if they changed.
Was this page helpful?