{"action":"created","issue":{"url":"https://api.github.com/repos/npm/npm/issues/6153","labels_url":"https://api.github.com/repos/npm/npm/issues/6153/labels{/name}","comments_url":"https://api.github.com/repos/npm/npm/issues/6153/comments","events_url":"https://api.github.com/repos/npm/npm/issues/6153/events","html_url":"https://github.com/npm/npm/issues/6153","id":42368086,"number":6153,"title":"Undocumented: How to install globally programmatically","user":{"login":"wesleytodd","id":1027776,"avatar_url":"https://avatars.githubusercontent.com/u/1027776?v=3","gravatar_id":"","url":"https://api.github.com/users/wesleytodd","html_url":"https://github.com/wesleytodd","followers_url":"https://api.github.com/users/wesleytodd/followers","following_url":"https://api.github.com/users/wesleytodd/following{/other_user}","gists_url":"https://api.github.com/users/wesleytodd/gists{/gist_id}","starred_url":"https://api.github.com/users/wesleytodd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wesleytodd/subscriptions","organizations_url":"https://api.github.com/users/wesleytodd/orgs","repos_url":"https://api.github.com/users/wesleytodd/repos","events_url":"https://api.github.com/users/wesleytodd/events{/privacy}","received_events_url":"https://api.github.com/users/wesleytodd/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/npm/npm/labels/bug","name":"bug","color":"C40233"},{"url":"https://api.github.com/repos/npm/npm/labels/documentation","name":"documentation","color":"d105f0"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2014-09-10T01:00:11Z","updated_at":"2015-02-09T13:30:48Z","closed_at":null,"body":"I would like to install a package globally.  Something like:\r\n\r\n```javascript\r\nnpm.commands.install([\"migrate\", \"gulp\"], {global: true}, function (er, data) {})\r\n```\r\n\r\nI noticed [the documentation on the `where` param](https://www.npmjs.org/doc/api/npm-install.html), but it doesn't tell what to pass for `where`.  Also, I don't trust something that says \"only used internally\" since that implies it might change.\r\n\r\nMy question is, should this param be documented if it is not intended to be used?  And secondly, how should I do this?\r\n\r\nOnce you show me I can add it to a doc and submit a PR.  Thanks!!"},"comment":{"url":"https://api.github.com/repos/npm/npm/issues/comments/73508277","html_url":"https://github.com/npm/npm/issues/6153#issuecomment-73508277","issue_url":"https://api.github.com/repos/npm/npm/issues/6153","id":73508277,"user":{"login":"smikes","id":5124609,"avatar_url":"https://avatars.githubusercontent.com/u/5124609?v=3","gravatar_id":"","url":"https://api.github.com/users/smikes","html_url":"https://github.com/smikes","followers_url":"https://api.github.com/users/smikes/followers","following_url":"https://api.github.com/users/smikes/following{/other_user}","gists_url":"https://api.github.com/users/smikes/gists{/gist_id}","starred_url":"https://api.github.com/users/smikes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/smikes/subscriptions","organizations_url":"https://api.github.com/users/smikes/orgs","repos_url":"https://api.github.com/users/smikes/repos","events_url":"https://api.github.com/users/smikes/events{/privacy}","received_events_url":"https://api.github.com/users/smikes/received_events","type":"User","site_admin":false},"created_at":"2015-02-09T13:30:48Z","updated_at":"2015-02-09T13:30:48Z","body":"It seems like the simplest way to do this would be to invoke `npm install -g` using the shell… is there a reason you can't do that?"}}