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-07-03 12:07:26 +0400
committerisaacs <i@izs.me>2010-07-03 12:07:26 +0400
commitf97b8136ebf6fe88d8e2883bc7bdb7800dda3cd2 (patch)
treeaf7c1ae46137afa24ffabe22fb9a6917b1c874c1 /cli.js
parent90c9ec8ef92b7fc0c173515ebe1afccd3d19d665 (diff)
s/addListener/on/g
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(" ")])