{"action":"created","issue":{"url":"https://api.github.com/repos/npm/npm/issues/8729","labels_url":"https://api.github.com/repos/npm/npm/issues/8729/labels{/name}","comments_url":"https://api.github.com/repos/npm/npm/issues/8729/comments","events_url":"https://api.github.com/repos/npm/npm/issues/8729/events","html_url":"https://github.com/npm/npm/issues/8729","id":91473494,"number":8729,"title":"problem installing cordova on Windows","user":{"login":"axtens","id":209621,"avatar_url":"https://avatars.githubusercontent.com/u/209621?v=3","gravatar_id":"","url":"https://api.github.com/users/axtens","html_url":"https://github.com/axtens","followers_url":"https://api.github.com/users/axtens/followers","following_url":"https://api.github.com/users/axtens/following{/other_user}","gists_url":"https://api.github.com/users/axtens/gists{/gist_id}","starred_url":"https://api.github.com/users/axtens/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/axtens/subscriptions","organizations_url":"https://api.github.com/users/axtens/orgs","repos_url":"https://api.github.com/users/axtens/repos","events_url":"https://api.github.com/users/axtens/events{/privacy}","received_events_url":"https://api.github.com/users/axtens/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-06-27T14:28:35Z","updated_at":"2015-06-28T13:45:17Z","closed_at":null,"body":"Instead of installing nodejs into C:\\Program Files\\nodejs, I installed it into P:\\nodejs. This may or may not have anything to do with the issue. \r\n\r\nAttempting to install cordova as per the docs, gives the following\r\n```\r\nP:\\nodejs>npm install -g cordova\r\nnpm ERR! Windows_NT 6.1.7601\r\nnpm ERR! argv \"P:\\\\nodejs\\\\\\\\node.exe\" \"P:\\\\nodejs\\\\node_modules\\\\npm\\\\bin\\\\npm-cli.js\" \"install\" \"-g\" \"cordova\"\r\nnpm ERR! node v0.12.5\r\nnpm ERR! npm  v2.12.0\r\n\r\nnpm ERR! undefined is not a function\r\nnpm ERR!\r\nnpm ERR! If you need help, you may report this error at:\r\nnpm ERR!     <https://github.com/npm/npm/issues>\r\n|\r\nnpm ERR! Please include the following file with any support request:\r\nnpm ERR!     P:\\nodejs\\npm-debug.log\r\n```\r\nBelow is the npm-debug.log\r\n```\r\n0 info it worked if it ends with ok\r\n1 verbose cli [ 'P:\\\\nodejs\\\\\\\\node.exe',\r\n1 verbose cli   'P:\\\\nodejs\\\\node_modules\\\\npm\\\\bin\\\\npm-cli.js',\r\n1 verbose cli   'install',\r\n1 verbose cli   '-g',\r\n1 verbose cli   'cordova' ]\r\n2 info using npm@2.12.0\r\n3 info using node@v0.12.5\r\n4 verbose install initial load of P:\\nodejs\\package.json\r\n5 verbose readDependencies loading dependencies from P:\\nodejs\\package.json\r\n6 silly cache add args [ 'cordova', null ]\r\n7 verbose cache add spec cordova\r\n8 silly cache add parsed spec { raw: 'cordova',\r\n8 silly cache add   scope: null,\r\n8 silly cache add   name: 'cordova',\r\n8 silly cache add   rawSpec: '',\r\n8 silly cache add   spec: '*',\r\n8 silly cache add   type: 'range' }\r\n9 silly addNamed cordova@*\r\n10 verbose addNamed \"*\" is a valid semver range for cordova\r\n11 silly addNameRange { name: 'cordova', range: '*', hasData: false }\r\n12 silly mapToRegistry name cordova\r\n13 silly mapToRegistry using default registry\r\n14 silly mapToRegistry registry https://registry.npmjs.org/\r\n15 silly mapToRegistry uri https://registry.npmjs.org/cordova\r\n16 verbose addNameRange registry:https://registry.npmjs.org/cordova not in flight; fetching\r\n17 verbose request uri https://registry.npmjs.org/cordova\r\n18 verbose request no auth needed\r\n19 info attempt registry request try #1 at 10:26:09 PM\r\n20 verbose request id 6681751cfd2490bf\r\n21 http request GET https://registry.npmjs.org/cordova\r\n22 http 200 https://registry.npmjs.org/cordova\r\n23 silly get cb [ 200,\r\n23 silly get   { server: 'CouchDB/1.5.0 (Erlang OTP/R16B03)',\r\n23 silly get     etag: '\"85NHKAIVXUC9GOV1AH5FU2UTC\"',\r\n23 silly get     'content-type': 'application/json',\r\n23 silly get     'cache-control': 'max-age=60',\r\n23 silly get     'content-length': '352002',\r\n23 silly get     'accept-ranges': 'bytes',\r\n23 silly get     date: 'Sat, 27 Jun 2015 14:26:14 GMT',\r\n23 silly get     via: '1.1 varnish',\r\n23 silly get     age: '0',\r\n23 silly get     connection: 'keep-alive',\r\n23 silly get     'x-served-by': 'cache-syd1625-SYD',\r\n23 silly get     'x-cache': 'HIT',\r\n23 silly get     'x-cache-hits': '1',\r\n23 silly get     'x-timer': 'S1435415173.982273,VS0,VE773',\r\n23 silly get     vary: 'Accept' } ]\r\n24 verbose get saving cordova to C:\\Users\\Admin\\AppData\\Roaming\\npm-cache\\registry.npmjs.org\\cordova\\.cache.json\r\n25 verbose stack TypeError: undefined is not a function\r\n25 verbose stack     at calculateOwner (P:\\nodejs\\node_modules\\npm\\lib\\utils\\correct-mkdir.js:37:24)\r\n25 verbose stack     at P:\\nodejs\\node_modules\\npm\\lib\\utils\\correct-mkdir.js:23:22\r\n25 verbose stack     at FSReqWrap.oncomplete (evalmachine.<anonymous>:95:15)\r\n26 verbose cwd P:\\nodejs\r\n27 error Windows_NT 6.1.7601\r\n28 error argv \"P:\\\\nodejs\\\\\\\\node.exe\" \"P:\\\\nodejs\\\\node_modules\\\\npm\\\\bin\\\\npm-cli.js\" \"install\" \"-g\" \"cordova\"\r\n29 error node v0.12.5\r\n30 error npm  v2.12.0\r\n31 error undefined is not a function\r\n32 error If you need help, you may report this error at:\r\n32 error     <https://github.com/npm/npm/issues>\r\n33 verbose exit [ 1, true ]\r\n\r\n```"},"comment":{"url":"https://api.github.com/repos/npm/npm/issues/comments/116278190","html_url":"https://github.com/npm/npm/issues/8729#issuecomment-116278190","issue_url":"https://api.github.com/repos/npm/npm/issues/8729","id":116278190,"user":{"login":"ldez","id":5674651,"avatar_url":"https://avatars.githubusercontent.com/u/5674651?v=3","gravatar_id":"","url":"https://api.github.com/users/ldez","html_url":"https://github.com/ldez","followers_url":"https://api.github.com/users/ldez/followers","following_url":"https://api.github.com/users/ldez/following{/other_user}","gists_url":"https://api.github.com/users/ldez/gists{/gist_id}","starred_url":"https://api.github.com/users/ldez/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ldez/subscriptions","organizations_url":"https://api.github.com/users/ldez/orgs","repos_url":"https://api.github.com/users/ldez/repos","events_url":"https://api.github.com/users/ldez/events{/privacy}","received_events_url":"https://api.github.com/users/ldez/received_events","type":"User","site_admin":false},"created_at":"2015-06-28T13:45:17Z","updated_at":"2015-06-28T13:45:17Z","body":"If you think I'm not trying to help you, directory you can follow the solution proposed NPM owner @othiym23 in issue #8626:\r\n> This is fixed in npm@2.12.1 (via 7e5da23), but unfortunately, to upgrade to it (it's npm@next right now) on Windows, you might have to downgrade. The fastest and easiest way to do this is using one of the official Node.js or io.js installers to reinstall both Node and npm. Thanks for filing this issue, because it's what alerted me that there was a problem here. And sorry for introducing the regression in the first place! This kind of change is very hard to test, but that's not an excuse."}}