
If the value of _PATH is set, it will override the default path of global node_modules returned by package global-modules. g, -globalĬheck the versions of your globally installed packages. This is especially useful if you want to automate your dependency updates with npm-check. Updates your dependencies like -update, just without any prompt. NPM_CHECK_INSTALLER= echo npm-check -u -y, -update-all Set environment variable NPM_CHECK_INSTALLER to the name of the installer you wish to use. Using the version of npm installed globally. To avoid using more than one version of npm in one directory, npm-check will automatically install updated modules Show an interactive UI for choosing which modules to update.Īutomatically updates versions referenced in the package.json.īased on recommendations from the npm team, npm-check only updates using npm install, not npm update. $ npm-check -gu # Update globally installed modules by picking which ones to upgrade. $ npm-check # See what can be updated, what isn't being used. Throw in a gist when creating issues on github. specials List of depcheck specials to include in check for unused dependencies. E, -save-exact Save exact version (x.y.z) instead of caret (^x.y.z) in package.json. i, -ignore Ignore dependencies based on succeeding glob. d, -dev-only Look at devDependencies only (skip dependencies). s, -skip-unused Skip check for unused packages. When updates are required it will return a non-zero response code that you can use in your CI tools. The result should look like the screenshot, or something nice when your packages are all up-to-date and in use. This is the easiest way to use npm-check. Works with and as well as newer alternative installers like ied and pnpm.Emoji in a command-line app, because command-line apps can be fun too.Does not query registries for packages with private: true in their package.json.Works with any public npm registry, private registries, and alternate registries like Sinopia.Upgrades your modules using your installed version of npm, including the new so dependencies go where you expect them.Supports public and private Supports ES6-style import from syntax.Interactive Update for less typing and fewer typos, via -u.Works on your globally installed packages too, via -g.Kindly informs you if a dependency is not being used in your code.Provides a link to the package's documentation so you can decide if you want the update.Check for outdated, incorrect, and unused dependencies.
