-
Notifications
You must be signed in to change notification settings - Fork 3.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: remove some npm.load timers and exit earlier for --versions
- Loading branch information
1 parent
03634be
commit fc68547
Showing
10 changed files
with
208 additions
and
169 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,66 @@ | ||
/* IMPORTANT | ||
* This snapshot file is auto-generated, but designed for humans. | ||
* It should be checked into source control and tracked carefully. | ||
* Re-generate by setting TAP_SNAPSHOT=1 and running tests. | ||
* Make sure to inspect the output below. Do not ignore changes! | ||
*/ | ||
'use strict' | ||
exports[`test/lib/cli/exit-handler.js TAP handles unknown error with logs and debug file > debug file contents 1`] = ` | ||
XX timing npm:load:whichnode Completed in {TIME}ms | ||
XX silly config:load:file:{CWD}/npmrc | ||
XX silly config:load:file:{CWD}/prefix/.npmrc | ||
XX silly config:load:file:{CWD}/home/.npmrc | ||
XX silly config:load:file:{CWD}/global/etc/npmrc | ||
XX timing npm:load:configload Completed in {TIME}ms | ||
XX timing npm:load:mkdirpcache Completed in {TIME}ms | ||
XX timing npm:load:mkdirplogs Completed in {TIME}ms | ||
XX verbose title npm | ||
XX verbose argv "--fetch-retries" "0" "--cache" "{CWD}/cache" "--loglevel" "silly" "--color" "false" "--timing" "true" | ||
XX timing npm:load:setTitle Completed in {TIME}ms | ||
XX verbose logfile logs-max:10 dir:{CWD}/cache/_logs/{DATE}- | ||
XX verbose logfile {CWD}/cache/_logs/{DATE}-debug-0.log | ||
XX timing npm:load Completed in {TIME}ms | ||
XX verbose stack Error: Unknown error | ||
XX verbose cwd {CWD}/prefix | ||
XX verbose {OS} | ||
XX verbose {NODE-VERSION} | ||
XX verbose npm {NPM-VERSION} | ||
XX error code ECODE | ||
XX error ERR SUMMARY Unknown error | ||
XX error ERR DETAIL Unknown error | ||
XX verbose exit 1 | ||
XX timing npm Completed in {TIME}ms | ||
XX verbose code 1 | ||
XX error Timing info written to: {CWD}/cache/_logs/{DATE}-timing.json | ||
XX error A complete log of this run can be found in: {CWD}/cache/_logs/{DATE}-debug-0.log | ||
` | ||
|
||
exports[`test/lib/cli/exit-handler.js TAP handles unknown error with logs and debug file > logs 1`] = ` | ||
timing npm:load:whichnode Completed in {TIME}ms | ||
silly config:load:file:{CWD}/npmrc | ||
silly config:load:file:{CWD}/prefix/.npmrc | ||
silly config:load:file:{CWD}/home/.npmrc | ||
silly config:load:file:{CWD}/global/etc/npmrc | ||
timing npm:load:configload Completed in {TIME}ms | ||
timing npm:load:mkdirpcache Completed in {TIME}ms | ||
timing npm:load:mkdirplogs Completed in {TIME}ms | ||
verbose title npm | ||
verbose argv "--fetch-retries" "0" "--cache" "{CWD}/cache" "--loglevel" "silly" "--color" "false" "--timing" "true" | ||
timing npm:load:setTitle Completed in {TIME}ms | ||
verbose logfile logs-max:10 dir:{CWD}/cache/_logs/{DATE}- | ||
verbose logfile {CWD}/cache/_logs/{DATE}-debug-0.log | ||
timing npm:load Completed in {TIME}ms | ||
verbose stack Error: Unknown error | ||
verbose cwd {CWD}/prefix | ||
verbose {OS} | ||
verbose {NODE-VERSION} | ||
verbose npm {NPM-VERSION} | ||
error code ECODE | ||
error ERR SUMMARY Unknown error | ||
error ERR DETAIL Unknown error | ||
verbose exit 1 | ||
timing npm Completed in {TIME}ms | ||
verbose code 1 | ||
error Timing info written to: {CWD}/cache/_logs/{DATE}-timing.json | ||
error A complete log of this run can be found in: {CWD}/cache/_logs/{DATE}-debug-0.log | ||
` |
Oops, something went wrong.