onload-script is not works? / subcommands? #2820

tokuhirom opened this Issue Sep 19, 2012 · 1 comment


None yet

2 participants


This issue says require('npm') to hook, but normal environment can't require npm module itself.

And i want to add a subcommands to npm like git. Can I do this like:

require('npm').addSubCommand("foo", function () { ... })

npm member

No, npm does not have any addSubCommand functionality.

@domenic domenic closed this Jun 18, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment