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:
Diffstat (limited to 'node_modules/npmlog/log.js')
-rw-r--r--node_modules/npmlog/log.js3
1 files changed, 3 insertions, 0 deletions
diff --git a/node_modules/npmlog/log.js b/node_modules/npmlog/log.js
index 8bf6422b6..d70004d2e 100644
--- a/node_modules/npmlog/log.js
+++ b/node_modules/npmlog/log.js
@@ -245,3 +245,6 @@ log.addLevel('http', 3000, { fg: 'green', bg: 'black' })
log.addLevel('warn', 4000, { fg: 'black', bg: 'yellow' }, 'WARN')
log.addLevel('error', 5000, { fg: 'red', bg: 'black' }, 'ERR!')
log.addLevel('silent', Infinity)
+
+// allow 'error' prefix
+log.on('error', function(){})