Information Systems



How do I install all the necessary packages for React?

React and Node JS can be a bit unruly in terms of package dependencies. I think these steps will also work for all Node apps, but React in particular seems to have package dependency issues.

1. Delete package-lock.json form the project's directory.
2. npm install.
3. If still no joy, rm -rf node_modules to remove the node_modules folder. On windows del /s /q instead of rm.