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

npm / cli / #682
70%
latest: 97%

Build:
Build:
LAST BUILD BRANCH: nlf/arborist-validation
DEFAULT BRANCH: latest
Ran 17 Nov 2020 01:22AM UTC
Jobs 1
Files 131
Run time 9s
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
#682

push

isaacs
Preserve builtin conf when installing npm globally

When a file named 'npmrc' is in the root of the npm module that is
currently running, it adds config values that override the defaults (but
not the global or user configs).

This is a way for a system package installer to tell the npm that it
installs to put its globals somewhere other than the default.  In order
to keep these configs around when users self-update npm with `npm i -g
npm`, these config values must be "sticky", and ride along into the
newly globally installed npm.

This commit restores this behavior, fixing self-updating npm for Windows
users, and any other systems that may make use of this functionality.

Fixes: #2002

1959 of 2984 branches covered (65.65%)

Branch coverage included in aggregate %.

47 of 47 new or added lines in 9 files covered. (100.0%)

3749 of 5228 relevant lines covered (71.71%)

13.62 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
1
100.0
lib/uninstall.js
1
100.0
lib/update.js
Jobs
ID Job ID Ran Files Coverage
1 #682.1 17 Nov 2020 01:22AM UTC 0
69.51
Source Files on build #682
  • Tree
  • List 131
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • e99e4293 on github
  • Next Build on isaacs/builtin-config-preservation
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

© 2025 Coveralls, Inc