Reading time: < 1 minute
If we want to delete the project-level (not global) installed dependencies within our React project, we need to do the following:
- Delete the folder called node_modules.
rm node_modules
- Delete package-lock.json:
rm package-lock.json
Now, if we want to reinstall the dependencies, we need to execute:
npm install
This way, we can restore the dependencies of our project.