Is there a simple way to reinstall all packages that my app depends on (i.e. they are in my apps node_modules folder)?
For Windows you can use
(if exist node_modules rmdir node_modules /q /s) && npm install
which removes node_modules directory and performs npm install then. Removal before install assures that all packages are reinstalled.
node_modules
npm install