{"action":"created","issue":{"url":"https://api.github.com/repos/npm/npm/issues/9083","labels_url":"https://api.github.com/repos/npm/npm/issues/9083/labels{/name}","comments_url":"https://api.github.com/repos/npm/npm/issues/9083/comments","events_url":"https://api.github.com/repos/npm/npm/issues/9083/events","html_url":"https://github.com/npm/npm/issues/9083","id":97625736,"number":9083,"title":"Getting error after npm install -g cordova on windows7","user":{"login":"applepie77","id":13533533,"avatar_url":"https://avatars.githubusercontent.com/u/13533533?v=3","gravatar_id":"","url":"https://api.github.com/users/applepie77","html_url":"https://github.com/applepie77","followers_url":"https://api.github.com/users/applepie77/followers","following_url":"https://api.github.com/users/applepie77/following{/other_user}","gists_url":"https://api.github.com/users/applepie77/gists{/gist_id}","starred_url":"https://api.github.com/users/applepie77/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/applepie77/subscriptions","organizations_url":"https://api.github.com/users/applepie77/orgs","repos_url":"https://api.github.com/users/applepie77/repos","events_url":"https://api.github.com/users/applepie77/events{/privacy}","received_events_url":"https://api.github.com/users/applepie77/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/npm/npm/labels/support","name":"support","color":"FF91AF"},{"url":"https://api.github.com/repos/npm/npm/labels/windows","name":"windows","color":"0b02e1"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-07-28T06:19:37Z","updated_at":"2015-07-29T09:23:31Z","closed_at":null,"body":"I got in trouble when I tried npm install -g cordova.\r\n\r\n\r\n![t](https://cloud.githubusercontent.com/assets/13533533/8924767/0c84a5c6-353c-11e5-88b3-71e5ab232857.JPG)\r\n\r\n```\r\nerror Windows_NT 6.1.7601\r\nerror argv \"C:\\\\nodejs\\\\\\\\node.exe\" \"C:\\\\nodejs\\\\node_modules\\\\npm\\\\bin\\\\npm-cli.js\" \"install\" \"-g\" \"cordova\"\r\nerror node v0.10.38\r\nerror npm  v2.13.2\r\nerror path C:\\nodejs\\node_modules\\cordova\\node_modules\\cordova-lib\\node_modules\\cordova-js\\node_modules\\browserify\\node_modules\\browser-pack\\node_modules\\combine-source-map\\node_modules\\inline-source-map\\node_modules\\source-map\\package.json.6c8638188e8d4407c3396b2e63e89603\r\nerror code EPERM\r\nerror errno 50\r\nerror Error: EPERM, unlink 'C:\\nodejs\\node_modules\\cordova\\node_modules\\cordova-lib\\node_modules\\cordova-js\\node_modules\\browserify\\node_modules\\browser-pack\\node_modules\\combine-source-map\\node_modules\\inline-source-map\\node_modules\\source-map\\package.json.6c8638188e8d4407c3396b2e63e89603'\r\nerror  { [Error: EPERM, unlink 'C:\\nodejs\\node_modules\\cordova\\node_modules\\cordova-lib\\node_modules\\cordova-js\\node_modules\\browserify\\node_modules\\browser-pack\\node_modules\\combine-source-map\\node_modules\\inline-source-map\\node_modules\\source-map\\package.json.6c8638188e8d4407c3396b2e63e89603']\r\nerror   errno: 50,\r\nerror   code: 'EPERM',\r\nerror   path: 'C:\\\\nodejs\\\\node_modules\\\\cordova\\\\node_modules\\\\cordova-lib\\\\node_modules\\\\cordova-js\\\\node_modules\\\\browserify\\\\node_modules\\\\browser-pack\\\\node_modules\\\\combine-source-map\\\\node_modules\\\\inline-source-map\\\\node_modules\\\\source-map\\\\package.json.6c8638188e8d4407c3396b2e63e89603' }\r\nerror Please try running this command again as root/Administrator.\r\nverbose exit [ 50, true ]\r\nverbose unbuild node_modules\\cordova\r\nsilly gentlyRm C:\\nodejs\\node_modules\\cordova is being purged from base C:\\nodejs\r\nverbose gentlyRm don't care about contents; nuking C:\\nodejs\\node_modules\\cordova\r\nsilly vacuum-fs purging C:\\nodejs\\node_modules\\cordova\r\nerror error rolling back Error: EPERM, unlink 'C:\\nodejs\\node_modules\\cordova\\node_modules\\cordova-lib\\node_modules\\cordova-js\\node_modules\\browserify\\node_modules\\browser-pack\\node_modules\\combine-source-map\\node_modules\\inline-source-map\\node_modules\\source-map\\package.json.6c8638188e8d4407c3396b2e63e89603'\r\n76 error error rolling back  { [Error: EPERM, unlink 'C:\\nodejs\\node_modules\\cordova\\node_modules\\cordova-lib\\node_modules\\cordova-js\\node_modules\\browserify\\node_modules\\browser-pack\\node_modules\\combine-source-map\\node_modules\\inline-source-map\\node_modules\\source-map\\package.json.6c8638188e8d4407c3396b2e63e89603']\r\nerror error rolling back   errno: 50,\r\nerror error rolling back   code: 'EPERM',\r\nerror error rolling back   path: 'C:\\\\nodejs\\\\node_modules\\\\cordova\\\\node_modules\\\\cordova-lib\\\\node_modules\\\\cordova-js\\\\node_modules\\\\browserify\\\\node_modules\\\\browser-pack\\\\node_modules\\\\combine-source-map\\\\node_modules\\\\inline-source-map\\\\node_modules\\\\source-map\\\\package.json.6c8638188e8d4407c3396b2e63e89603' }\r\n```\r\n\r\nI tried many things.\r\n```\r\n$ npm cache clean\r\n$ npm update \r\n```\r\nupdate node and npm\r\nreinstallation node\r\nadministrator execution cmd.exe\r\n\r\nbut thoes don't work at all.\r\n\r\nthanks.."},"comment":{"url":"https://api.github.com/repos/npm/npm/issues/comments/125890360","html_url":"https://github.com/npm/npm/issues/9083#issuecomment-125890360","issue_url":"https://api.github.com/repos/npm/npm/issues/9083","id":125890360,"user":{"login":"applepie77","id":13533533,"avatar_url":"https://avatars.githubusercontent.com/u/13533533?v=3","gravatar_id":"","url":"https://api.github.com/users/applepie77","html_url":"https://github.com/applepie77","followers_url":"https://api.github.com/users/applepie77/followers","following_url":"https://api.github.com/users/applepie77/following{/other_user}","gists_url":"https://api.github.com/users/applepie77/gists{/gist_id}","starred_url":"https://api.github.com/users/applepie77/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/applepie77/subscriptions","organizations_url":"https://api.github.com/users/applepie77/orgs","repos_url":"https://api.github.com/users/applepie77/repos","events_url":"https://api.github.com/users/applepie77/events{/privacy}","received_events_url":"https://api.github.com/users/applepie77/received_events","type":"User","site_admin":false},"created_at":"2015-07-29T09:23:31Z","updated_at":"2015-07-29T09:23:31Z","body":"yes.. right click to cmd.exe. \r\nC:\\windows\\systems32 means that it's running as an adminisrator as you see"}}