Skip to content

Commit

Permalink
Add a helpful message for when someone does "node npm.js"
Browse files Browse the repository at this point in the history
  • Loading branch information
isaacs committed Oct 28, 2010
1 parent 4f8b35e commit 00e2d62
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions npm.js
@@ -1,6 +1,14 @@

process.title = "npm"

if (require.main === module) {
console.error(["It looks like you're doing 'node npm.js'."
,"Don't do that. Instead, run 'make install'"
,"and then use the 'npm' command line utility."
].join("\n"))
process.exit(1)
}

var npm = exports
, config = require("./lib/config")
, set = require("./lib/utils/set")
Expand Down

0 comments on commit 00e2d62

Please sign in to comment.