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
diff options
context:
space:
mode:
authorisaacs <i@izs.me>2014-05-24 01:32:34 +0400
committerisaacs <i@izs.me>2014-05-24 01:32:34 +0400
commit9f003067909440390198c0b8f92560d84da37762 (patch)
tree981c9687bb014f983cf1324b725b5f565cda79b2
parente06799e77e60c1fc51869619083a25e074d368b3 (diff)
stop the spinner when the process finishes
Required for node 0.8 compatibility
-rw-r--r--lib/utils/error-handler.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/utils/error-handler.js b/lib/utils/error-handler.js
index b025fdd37..feeec184c 100644
--- a/lib/utils/error-handler.js
+++ b/lib/utils/error-handler.js
@@ -63,6 +63,7 @@ function exit (code, noLog) {
// if we're really exiting, then let it exit on its own, so that
// in-process stuff can finish or clean up first.
if (!doExit) process.emit("exit", code)
+ npm.spinner.stop()
}
}