{"action":"created","issue":{"url":"https://api.github.com/repos/angular/angular-cli/issues/2807","repository_url":"https://api.github.com/repos/angular/angular-cli","labels_url":"https://api.github.com/repos/angular/angular-cli/issues/2807/labels{/name}","comments_url":"https://api.github.com/repos/angular/angular-cli/issues/2807/comments","events_url":"https://api.github.com/repos/angular/angular-cli/issues/2807/events","html_url":"https://github.com/angular/angular-cli/issues/2807","id":184349175,"number":2807,"title":"Unable to install CLI on Windows 7","user":{"login":"joswalt","id":177591,"avatar_url":"https://avatars.githubusercontent.com/u/177591?v=3","gravatar_id":"","url":"https://api.github.com/users/joswalt","html_url":"https://github.com/joswalt","followers_url":"https://api.github.com/users/joswalt/followers","following_url":"https://api.github.com/users/joswalt/following{/other_user}","gists_url":"https://api.github.com/users/joswalt/gists{/gist_id}","starred_url":"https://api.github.com/users/joswalt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/joswalt/subscriptions","organizations_url":"https://api.github.com/users/joswalt/orgs","repos_url":"https://api.github.com/users/joswalt/repos","events_url":"https://api.github.com/users/joswalt/events{/privacy}","received_events_url":"https://api.github.com/users/joswalt/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2016-10-20T21:47:44Z","updated_at":"2016-10-21T14:36:49Z","closed_at":null,"body":"### Versions\r\n> Windows 7 Enterprise SP1\r\nNode: v4.6.1\r\nNPM: v3.10.8\r\nMy user account is an Administrator on PC\r\n\r\nThe errors state that the process could not rename some files. As I stated above, I am an administrator on this PC so there should be any reasons for not having permission.\r\n\r\n### The log given by the failure.\r\nI ran the following command at an Administrator Command prompt:\r\n```\r\nC:\\_Dev\\joswalt>npm install -g angular-cli\r\nnpm WARN deprecated graceful-fs@1.2.3: graceful-fs v3.0.0 and before will fail on node releases >= v7.0. Please update t\r\no graceful-fs@^4.0.0 as soon as possible. Use 'npm ls graceful-fs' to find it in the tree.\r\nnpm WARN deprecated minimatch@2.0.10: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue\r\nnpm WARN deprecated lodash-node@2.4.1: This package is discontinued. Use lodash@^4.0.0.\r\nnpm WARN deprecated minimatch@0.3.0: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue\r\nnpm WARN deprecated tough-cookie@2.2.2: ReDoS vulnerability parsing Set-Cookie https://nodesecurity.io/advisories/130\r\nC:\\Users\\joswalt\\AppData\\Roaming\\npm\r\n`-- (empty)\r\n\r\nnpm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@^1.0.0 (node_modules\\angular-cli\\node_modules\\chokidar\\node_mod\r\nules\\fsevents):\r\nnpm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.0.14: wanted {\"os\":\"darwin\",\"arch\":\"an\r\ny\"} (current: {\"os\":\"win32\",\"arch\":\"x64\"})\r\nnpm WARN @angular/compiler-cli@0.6.4 requires a peer of @angular/compiler@2.0.2 but none was installed.\r\nnpm WARN @angular/compiler-cli@0.6.4 requires a peer of @angular/platform-server@2.0.2 but none was installed.\r\nnpm WARN @angular/compiler-cli@0.6.4 requires a peer of @angular/core@2.0.2 but none was installed.\r\nnpm ERR! Windows_NT 6.1.7601\r\nnpm ERR! argv \"C:\\\\PROGRA~1\\\\nodejs\\\\node.exe\" \"C:\\\\Users\\\\joswalt\\\\AppData\\\\Roaming\\\\npm\\\\node_modules\\\\npm\\\\bin\\\\npm-c\r\nli.js\" \"install\" \"-g\" \"angular-cli\"\r\nnpm ERR! node v4.6.1\r\nnpm ERR! npm  v3.10.8\r\nnpm ERR! path C:\\Users\\joswalt\\AppData\\Roaming\\npm\\node_modules\\angular-cli\\node_modules\\@angular-cli\\ast-tools\r\nnpm ERR! code EPERM\r\nnpm ERR! errno -4048\r\nnpm ERR! syscall rename\r\n\r\nnpm ERR! Error: EPERM: operation not permitted, rename 'C:\\Users\\joswalt\\AppData\\Roaming\\npm\\node_modules\\angular-cli\\no\r\nde_modules\\@angular-cli\\ast-tools' -> 'C:\\Users\\joswalt\\AppData\\Roaming\\npm\\node_modules\\angular-cli\\node_modules\\@angul\r\nar-cli\\.ast-tools.DELETE'\r\nnpm ERR!     at moveAway (C:\\Users\\joswalt\\AppData\\Roaming\\npm\\node_modules\\npm\\lib\\install\\action\\finalize.js:38:5)\r\nnpm ERR!     at destStatted (C:\\Users\\joswalt\\AppData\\Roaming\\npm\\node_modules\\npm\\lib\\install\\action\\finalize.js:27:7)\r\nnpm ERR!     at FSReqWrap.oncomplete (fs.js:82:15)\r\nnpm ERR!\r\nnpm ERR! Error: EPERM: operation not permitted, rename 'C:\\Users\\joswalt\\AppData\\Roaming\\npm\\node_modules\\angular-cli\\no\r\nde_modules\\@angular-cli\\ast-tools' -> 'C:\\Users\\joswalt\\AppData\\Roaming\\npm\\node_modules\\angular-cli\\node_modules\\@angul\r\nar-cli\\.ast-tools.DELETE'\r\nnpm ERR!     at Error (native)\r\nnpm ERR!  { [Error: EPERM: operation not permitted, rename 'C:\\Users\\joswalt\\AppData\\Roaming\\npm\\node_modules\\angular-cl\r\ni\\node_modules\\@angular-cli\\ast-tools' -> 'C:\\Users\\joswalt\\AppData\\Roaming\\npm\\node_modules\\angular-cli\\node_modules\\@a\r\nngular-cli\\.ast-tools.DELETE'] parent: 'angular-cli' }\r\nnpm ERR!\r\nnpm ERR! Please try running this command again as root/Administrator.\r\n\r\nnpm ERR! Please include the following file with any support request:\r\nnpm ERR!     C:\\_Dev\\joswalt\\npm-debug.log\r\nnpm ERR! code 1\r\n```"},"comment":{"url":"https://api.github.com/repos/angular/angular-cli/issues/comments/255394330","html_url":"https://github.com/angular/angular-cli/issues/2807#issuecomment-255394330","issue_url":"https://api.github.com/repos/angular/angular-cli/issues/2807","id":255394330,"user":{"login":"gelliott181","id":3580685,"avatar_url":"https://avatars.githubusercontent.com/u/3580685?v=3","gravatar_id":"","url":"https://api.github.com/users/gelliott181","html_url":"https://github.com/gelliott181","followers_url":"https://api.github.com/users/gelliott181/followers","following_url":"https://api.github.com/users/gelliott181/following{/other_user}","gists_url":"https://api.github.com/users/gelliott181/gists{/gist_id}","starred_url":"https://api.github.com/users/gelliott181/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gelliott181/subscriptions","organizations_url":"https://api.github.com/users/gelliott181/orgs","repos_url":"https://api.github.com/users/gelliott181/repos","events_url":"https://api.github.com/users/gelliott181/events{/privacy}","received_events_url":"https://api.github.com/users/gelliott181/received_events","type":"User","site_admin":false},"created_at":"2016-10-21T14:36:49Z","updated_at":"2016-10-21T14:36:49Z","body":"If you installed the CLI using an Elevated process (Command Prompt or Powershell) you need to keep using an elevated process as the CLI generated files requiring them.\r\n\r\nI'd uninstall (With an elevated prompt) and see if installing from a non-elevated prompt or Powershell helps. This fixed my issue the last time it came up."}}
{"actor":{"display_login":"gelliott181"}}