Dependency
I just downloaded the project and it reports a missing module. Is the code broken?
I just downloaded the project and it reports a missing module. Is the code broken?
package.jsonRecords which packages are neededsrc/node_modules/Does not exist$ npm start Error: Cannot find module 'react' Dependencies are not installed yetThe list is there but not the packages: install before starting
For a missing module, separate three causes: never installed, version mismatch, or a wrong import path—each reports differently.
The project stores a list, not the packages: The repository usually holds one file that records which packages and versions the project needs; the packages themselves are downloaded on demand and are not versioned.
Installing is a one-time preparation: The install command reads the list and downloads packages into the project folder. On another machine or after re-cloning, installation must be repeated.
Errors map to different causes: Cannot find module first suggests dependencies were never installed. If it persists after installing, check the version match and whether the import path is wrong.
The freshly cloned project reports Cannot find module. Run the dependency install command first, confirm every package in the manifest is installed, then start again. If installation fails, explain which package failed and why instead of working around it in business code.