Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/npm/cli.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/cli.js
diff options
context:
space:
mode:
authorisaacs <i@izs.me>2010-08-25 03:33:18 +0400
committerisaacs <i@izs.me>2010-08-25 16:21:51 +0400
commitec1bee0889f6f2a956fbd6f31a6fadc606a5393d (patch)
tree389f0da5ac38623351de9d3a98c8f23c06f95e63 /cli.js
parent3781a298baf83ed3f2550c2afc09885738780595 (diff)
Don't buffer logs unless we know that the config is coming.
An inelegant solution, but it works.
Diffstat (limited to 'cli.js')
-rwxr-xr-xcli.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/cli.js b/cli.js
index 1fcca7417..794af4309 100755
--- a/cli.js
+++ b/cli.js
@@ -3,7 +3,7 @@
// don't assume that npm is installed in any particular spot, since this
// might conceivably be a bootstrap attempt.
var log = require("./lib/utils/log")
-
+log.waitForConfig()
log.info("ok", "it worked if it ends with")
var fs = require("./lib/utils/graceful-fs")