So, I'm working on a node project where the prior developer gave instructions that if the application is not building correctly to simply run npm uninstall
(without any options or parameters) then re-run npm install
.
So, I understand how npm install works, but I can't seem to find any reference to what npm uninstall
will do if it's not passed any parameters or options. The documentation on npmjs doesn't provide any help here and I haven't been able to come up with anything in any of my searches.
It does look like it does something (sometimes) but all the node modules appear to still be all there as if nothing was done. I can't just delete the node_modules directory because we have some custom modules added under the node_modules directory not referenced in the package.json.
Any/all help and guidance appreciated.