1.1.3 • Published 7 years ago

npmfix v1.1.3

Weekly downloads
3
License
MIT
Repository
github
Last release
7 years ago

npmfix

Build Status Known Vulnerabilities npm version

CLI tool that fixes integrity check issues in projects managing dependencies with NPM.

npmfix image

Check out my blog post about this project.

Requirements

  • NPM
  • Node.js

Installation

Install the CLI by running this command:

  npm i -g npmfix

How 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:

  1. Continue only if the current folder has a package.json file
  2. Delete the node_modules folder
  3. 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