How do I force npm to reinstall a single package, even if the version number is the same?
When you run npm install
, it will install any missing dependencies, so you can combine it with an uninstall
like this:
npm uninstall some_module; npm install
With npm 5, uninstalled modules are removed from the package.json
, so you should use:
npm uninstall some_module; npm install some_module