1.0.0 • Published 6 years ago
npm-list-problems-cli v1.0.0
npm-list-problems-cli
Introduction
Check if a directory has certain npm
dependency errors. These errors can be seen when running the npm list
command in a directory. However, it does not seem like there's a way to return a non-zero exit code for a subset of the different error types.
Filtering certain type of errors could lead to the ability to fail builds where certain npm
dependency errors indicate that there are inconsistencies between the package.json
and package-lock.json
files.
Installation
npm install npm-list-problems-cli -g
Usage
npmlistproblems [--types] [--path]
- There are
6
types of errors to filter by:EXTRANEOUS_DEPENDENCY
MISSING_DEPENDENCY
MISSING_PEER_DEPENDENCY
UNMET_PEER_DEPENDENCY
INVALID_DEPENDENCY
DEPENDENCY_ERROR
- If no error types are specified, all
6
errors are used for filtering - If no
path
is specified, the current directory is examined - If error types are specified, they should be
|
separated - If a
path
is specified, it should be the relative path for another directory npmlistproblems --types="EXTRANEOUS_DEPENDENCY|MISSING_DEPENDENCY" --path="../some/other/directory
- Find all extraneous and missing dependency errors for
../some/other/directory
- Find all extraneous and missing dependency errors for
1.0.0
6 years ago