Skip to content

Instantly share code, notes, and snippets.

@Gozala
Created November 6, 2012 00:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save Gozala/4021268 to your computer and use it in GitHub Desktop.
Save Gozala/4021268 to your computer and use it in GitHub Desktop.
npm testcase
var npm = require("npm")
var path = require("path")
npm.load({ prefix: path.join(process.env.HOME, ".orchestrator") }, function(e, npm) {
npm.commands.install("method", function(err, _) {
npm.commands.ls(null, console.log)
})
})
// I expect that method lib will be in the output. Instead I get
// null { dependencies: {},
// path: '/Users/gozala/.orchestrator',
// realName: undefined,
// realPath: '/Users/gozala/.orchestrator',
// link: undefined,
// depth: 0,
// _found: false }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment