{"action":"created","issue":{"url":"https://api.github.com/repos/deathcap/webnpm/issues/2","labels_url":"https://api.github.com/repos/deathcap/webnpm/issues/2/labels{/name}","comments_url":"https://api.github.com/repos/deathcap/webnpm/issues/2/comments","events_url":"https://api.github.com/repos/deathcap/webnpm/issues/2/events","html_url":"https://github.com/deathcap/webnpm/issues/2","id":56988652,"number":2,"title":"npm install broken","user":{"login":"deathcap","id":5897956,"avatar_url":"https://avatars.githubusercontent.com/u/5897956?v=3","gravatar_id":"","url":"https://api.github.com/users/deathcap","html_url":"https://github.com/deathcap","followers_url":"https://api.github.com/users/deathcap/followers","following_url":"https://api.github.com/users/deathcap/following{/other_user}","gists_url":"https://api.github.com/users/deathcap/gists{/gist_id}","starred_url":"https://api.github.com/users/deathcap/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/deathcap/subscriptions","organizations_url":"https://api.github.com/users/deathcap/orgs","repos_url":"https://api.github.com/users/deathcap/repos","events_url":"https://api.github.com/users/deathcap/events{/privacy}","received_events_url":"https://api.github.com/users/deathcap/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-02-09T04:45:30Z","updated_at":"2015-02-09T07:37:09Z","closed_at":null,"body":"`npm install` fails (but not because of missing #1 network access):\r\n\r\n```\r\nnpm.commands.install.usage\r\n\"npm install\r\nnpm install <pkg>\r\nnpm install <pkg>@<tag>\r\nnpm install <pkg>@<version>\r\nnpm install <pkg>@<version range>\r\nnpm install <folder>\r\nnpm install <tarball file>\r\nnpm install <tarball url>\r\nnpm install <git:// url>\r\nnpm install <github username>/<github project>\r\n\r\nCan specify one or more: npm install ./foo.tgz bar@stable /some/folder\r\nIf no argument is supplied and ./npm-shrinkwrap.json is \r\npresent, installs dependencies specified in the shrinkwrap.\r\nOtherwise, installs dependencies from ./package.json.\"\r\nnpm.commands.install('ndarray-guassian-filter')\r\nbundle.js:68039 Uncaught TypeError: undefined is not a function\r\nbundle.js:68039 install\r\nbundle.js:69768 Object.keys.concat.forEach.Object.defineProperty.get.commandCache.(anonymous function)\r\nVM11065:2 (anonymous function)VM10645:777 InjectedScript._evaluateOn\r\nVM10645:710 InjectedScript._evaluateAndWrap\r\nVM10645:626 InjectedScript.evaluate\r\n\r\nnpm.commands.install('ndarray-guassian-filter', [])\r\nbundle.js:68044 Uncaught TypeError: undefined is not a functionbundle.js:68044 install\r\nbundle.js:69768 Object.keys.concat.forEach.Object.defineProperty.get.commandCache.(anonymous function)\r\n```\r\n\r\nproper usage is an array of arguments:\r\n\r\n   npm.commands.install(['ndarray-gaussian-filter'])\r\n\r\nfails in:\r\n\r\n    , writeStreamAtomic = require(\"fs-write-stream-atomic\")\r\n\r\nutil.inherits(WriteStream, fs.WriteStream)\r\n\r\n```javascript\r\n      // implementation from standard node.js 'util' module\r\n      module.exports = function inherits(ctor, superCtor) {\r\n        ctor.super_ = superCtor\r\n        ctor.prototype = Object.create(superCtor.prototype, { // *** <-- superCtor is undefined\r\n          constructor: {\r\n            value: ctor,\r\n            enumerable: false,\r\n            writable: true,\r\n            configurable: true\r\n          }\r\n        });\r\n      };\r\n```\r\n\r\nbrowserify-fs lacks WriteStream, http://nodejs.org/api/fs.html#fs_class_fs_writestream"},"comment":{"url":"https://api.github.com/repos/deathcap/webnpm/issues/comments/73468046","html_url":"https://github.com/deathcap/webnpm/issues/2#issuecomment-73468046","issue_url":"https://api.github.com/repos/deathcap/webnpm/issues/2","id":73468046,"user":{"login":"deathcap","id":5897956,"avatar_url":"https://avatars.githubusercontent.com/u/5897956?v=3","gravatar_id":"","url":"https://api.github.com/users/deathcap","html_url":"https://github.com/deathcap","followers_url":"https://api.github.com/users/deathcap/followers","following_url":"https://api.github.com/users/deathcap/following{/other_user}","gists_url":"https://api.github.com/users/deathcap/gists{/gist_id}","starred_url":"https://api.github.com/users/deathcap/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/deathcap/subscriptions","organizations_url":"https://api.github.com/users/deathcap/orgs","repos_url":"https://api.github.com/users/deathcap/repos","events_url":"https://api.github.com/users/deathcap/events{/privacy}","received_events_url":"https://api.github.com/users/deathcap/received_events","type":"User","site_admin":false},"created_at":"2015-02-09T07:37:09Z","updated_at":"2015-02-09T07:37:09Z","body":"```javascript\r\nrequire('request')({uri: require('url').parse('http://npmjs.org/')}, function() {})\r\n```\r\n\r\nworks in `request`, but not `browser-request` (Error: options.uri must be a string)"}}