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:
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 a5ed1d4d1..879017620 100755
--- a/cli.js
+++ b/cli.js
@@ -50,7 +50,7 @@ if (printVersion) {
if (vindex !== -1) arglist.splice(vindex, 1)
} else log(npm.version, "version")
-process.addListener("uncaughtException", errorHandler)
+process.on("uncaughtException", errorHandler)
if (!command) { if (!printVersion) {
// npm.commands.help([arglist.join(" ")])