Remove the node_module and reinstall your npm packages in an easy way
npm install nmgcThis module allows you to remove lock files (package-lock.json, yarn.lock, pnpm-lock.yaml) and node_modules from your project. It also provides a clean installation of your dependencies using npm, yarn, or pnpm.





The minimum supported version of Node.js is v6.
``bash`
npm i -g nmgc
Or use with npx
`bash`
npx nmgc
`bash
USAGE:
nmgc
COMMAND
h, help show general help
r, remove remove lock files (package-lock.json, yarn.lock, pnpm-lock.yaml) and node_modules
i, install clean dependencies and install them from package.json
OPTIONS:
-f, --force force the installation
--npm use npm package manager
--yarn use yarn package manager
--pnpm use pnpm package manager
NOTE: If no package manager is specified, it will auto-detect based on lock files.
`
`bashRemove lock files and node_modules
$ nmgc remove