Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

nextTick the sudon't warning, so it doens't die.

  • Loading branch information...
commit 005e23e70690248441c2c70950cfba8bda76fc2f 1 parent 7413097
@isaacs isaacs authored
Showing with 4 additions and 4 deletions.
  1. +4 −4 npm.js
View
8 npm.js
@@ -153,7 +153,7 @@ Object.defineProperty(npm, "tmp",
, enumerable : true
})
-if (process.getuid() === 0) {
- log.error( "\nRunning npm as root is not recommended!\n"
- + "Seriously, don't do this!\n", "sudon't!")
-}
+if (process.getuid() === 0) process.nextTick(function () {
+ log( "\nRunning npm as root is not recommended!\n"
+ + "Seriously, don't do this!\n", "sudon't!", "error")
+})
Please sign in to comment.
Something went wrong with that request. Please try again.