- Install the project's packages
npm installRun it in the folder that has package.json. A freshly cloned project has no node_modules until you do.
- Add the package if the project doesn't list it
npm install expressIf the name starts with ./ or ../ it's one of your own files, not a package. Check the path and the capital letters.
- Still failing? Reinstall from scratch
rm -rf node_modules && npm install
Check it worked
- Check the package is installed
npm ls expressIt should show a version number, not (empty).
- Install the project's packages
npm installRun it in the folder that has package.json. A freshly cloned project has no node_modules until you do.
- Add the package if the project doesn't list it
npm install expressIf the name starts with ./ or ../ it's one of your own files, not a package. Linux cares about capital letters, so check the file name matches exactly.
- Still failing? Reinstall from scratch
rm -rf node_modules && npm install
Check it worked
- Check the package is installed
npm ls expressIt should show a version number, not (empty).
- Install the project's packages
npm installRun it in the folder that has package.json. A freshly cloned project has no node_modules until you do.
- Add the package if the project doesn't list it
npm install expressIf the name starts with ./ or ../ it's one of your own files, not a package. Check the path and the file name.
- Still failing? Reinstall from scratch
Remove-Item -Recurse -Force node_modules; npm install
Check it worked
- Check the package is installed
npm ls expressIt should show a version number, not (empty).

New to dependency? I explain it in plain English on Layman Terms.