• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

npm / cli / #3222
97%
latest: 97%

Build:
Build:
LAST BUILD BRANCH: nlf/arborist-validation
DEFAULT BRANCH: latest
Ran 27 Oct 2021 03:43PM UTC
Jobs 1
Files 125
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

pending completion
#3222

push

lukekarrys
fix: allow `--lockfile-version` config to be string and coerce to number

As all CLI input is considered to be string, eg. a
"npm install --lockfile-version 3" would fail with the error messages:

```
npm WARN invalid config lockfile-version="3" set in command line options
npm WARN invalid config Must be one of: null, 1, 2, 3
```

Until we have a config system that supports setting type and possible values
of configs, we have to specify all string and number values for the
`lockfile-version`, but we coerce all values to numbers in the flattener.

Co-authored-by: @voxpelli
Co-authored-by: @isaacs

3254 of 3354 branches covered (97.02%)

Branch coverage included in aggregate %.

1 of 1 new or added line in 1 file covered. (100.0%)

5533 of 5686 relevant lines covered (97.31%)

28.36 hits per line

Jobs
ID Job ID Ran Files Coverage
1 #3222.1 27 Oct 2021 03:43PM UTC 0
97.2
Source Files on build #3222
Detailed source file information is not available for this build.
  • Back to Repo
  • b2c01ea6 on github
  • Next Build on lk/config-lockfile-version
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc