npmfix
v1.1.3
Published
Node.js CLI tool that fixes integrity issues in projects using npm as package manager.
Readme
npmfix
CLI tool that fixes integrity check issues in projects managing dependencies with NPM.

Check out my blog post about this project.
Requirements
- NPM
- Node.js
Installation
Install the CLI by running this command:
npm i -g npmfixHow it works
Usually these issues are caused by package cache corruption or package-lock.json file corruption. Npmfix fixes these issues with a simple algorithm:
- Continue only if the current folder has a package.json file
- Delete the node_modules folder
- Delete the package-lock.json file
You can pass additional arguments to extend the default behavior. Check out the next section for more information.
Usage
npmfix [options]
Options:
-V, --version output the version number
-s, --serious Serious fix mode: performs time-consuming operations to fix more reliably your projects.
-i, --install Runs 'npm i' (or the 'setup' script, if available) after fixing a project.
-r, --recursive Recursively fix projects. Useful when there are sub-projects in the current folder.
-h, --help output usage information