{"action":"created","issue":{"url":"https://api.github.com/repos/npm/npm/issues/14196","repository_url":"https://api.github.com/repos/npm/npm","labels_url":"https://api.github.com/repos/npm/npm/issues/14196/labels{/name}","comments_url":"https://api.github.com/repos/npm/npm/issues/14196/comments","events_url":"https://api.github.com/repos/npm/npm/issues/14196/events","html_url":"https://github.com/npm/npm/issues/14196","id":181376471,"number":14196,"title":"unable to install angular-cli ","user":{"login":"findeiskahori","id":19710195,"avatar_url":"https://avatars.githubusercontent.com/u/19710195?v=3","gravatar_id":"","url":"https://api.github.com/users/findeiskahori","html_url":"https://github.com/findeiskahori","followers_url":"https://api.github.com/users/findeiskahori/followers","following_url":"https://api.github.com/users/findeiskahori/following{/other_user}","gists_url":"https://api.github.com/users/findeiskahori/gists{/gist_id}","starred_url":"https://api.github.com/users/findeiskahori/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/findeiskahori/subscriptions","organizations_url":"https://api.github.com/users/findeiskahori/orgs","repos_url":"https://api.github.com/users/findeiskahori/repos","events_url":"https://api.github.com/users/findeiskahori/events{/privacy}","received_events_url":"https://api.github.com/users/findeiskahori/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/npm/npm/labels/proxy","name":"proxy","color":"005280"},{"url":"https://api.github.com/repos/npm/npm/labels/support","name":"support","color":"000000"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":11,"created_at":"2016-10-06T10:19:12Z","updated_at":"2016-10-20T09:58:18Z","closed_at":null,"body":"I am unable to install angular-cli.\r\n\r\nAnd when I enter in prompt npm instal -g angular-cli\r\n\r\n<details>\r\n```\r\nC:\\Windows\\system32>npm install -g angular-cli\r\nnpm ERR! git clone --template=C:\\Users\\myusername\\AppData\\Roaming\\npm-cache\\_git-remotes\\_templates --mirror git@github.com:webpack/compression-webpack-plugin.git C:\\\r\nUsers\\myusername\\AppData\\Roaming\\npm-cache\\_git-remotes\\git-github-com-webpack-compression-webpack-plugin-git-7e55907cd54a2e91b96d25a660acc6a2a6453f54-e286d0b5: Cloni\r\nng into bare repository 'C:\\Users\\myusername\\AppData\\Roaming\\npm-cache\\_git-remotes\\git-github-com-webpack-compression-webpack-plugin-git-7e55907cd54a2e91b96d25a660ac\r\nc6a2a6453f54-e286d0b5'...\r\nnpm ERR! git clone --template=C:\\Users\\myusername\\AppData\\Roaming\\npm-cache\\_git-remotes\\_templates --mirror git@github.com:webpack/compression-webpack-plugin.git C:\\\r\nUsers\\myusername\\AppData\\Roaming\\npm-cache\\_git-remotes\\git-github-com-webpack-compression-webpack-plugin-git-7e55907cd54a2e91b96d25a660acc6a2a6453f54-e286d0b5: ssh:\r\nconnect to host github.com port 22: Connection timed out\r\nnpm ERR! git clone --template=C:\\Users\\myusername\\AppData\\Roaming\\npm-cache\\_git-remotes\\_templates --mirror git@github.com:webpack/compression-webpack-plugin.git C:\\\r\nUsers\\myusername\\AppData\\Roaming\\npm-cache\\_git-remotes\\git-github-com-webpack-compression-webpack-plugin-git-7e55907cd54a2e91b96d25a660acc6a2a6453f54-e286d0b5: fatal\r\n: Could not read from remote repository.\r\nnpm ERR! git clone --template=C:\\Users\\findeis.kahori\\AppData\\Roaming\\npm-cache\\_git-remotes\\_templates --mirror git@github.com:webpack/compression-webpack-plugin.git C:\\\r\nUsers\\myusername\\AppData\\Roaming\\npm-cache\\_git-remotes\\git-github-com-webpack-compression-webpack-plugin-git-7e55907cd54a2e91b96d25a660acc6a2a6453f54-e286d0b5:\r\nnpm ERR! git clone --template=C:\\Users\\myusername\\AppData\\Roaming\\npm-cache\\_git-remotes\\_templates --mirror git@github.com:webpack/compression-webpack-plugin.git C:\\\r\nUsers\\myusername\\AppData\\Roaming\\npm-cache\\_git-remotes\\git-github-com-webpack-compression-webpack-plugin-git-7e55907cd54a2e91b96d25a660acc6a2a6453f54-e286d0b5: Pleas\r\ne make sure you have the correct access rights\r\nnpm ERR! git clone --template=C:\\Users\\myusername\\AppData\\Roaming\\npm-cache\\_git-remotes\\_templates --mirror git@github.com:webpack/compression-webpack-plugin.git C:\\\r\nUsers\\myusername\\AppData\\Roaming\\npm-cache\\_git-remotes\\git-github-com-webpack-compression-webpack-plugin-git-7e55907cd54a2e91b96d25a660acc6a2a6453f54-e286d0b5: and t\r\nhe repository exists.\r\nnpm ERR! Windows_NT 6.1.7601\r\nnpm ERR! argv \"C:\\\\Program Files\\\\nodejs\\\\node.exe\" \"C:\\\\Program Files\\\\nodejs\\\\node_modules\\\\npm\\\\bin\\\\npm-cli.js\" \"install\" \"-g\" \"angular-cli\"\r\nnpm ERR! node v6.7.0\r\nnpm ERR! npm  v3.10.3\r\nnpm ERR! code 128\r\n\r\nnpm ERR! Command failed: git -c core.longpaths=true clone --template=C:\\Users\\findeis.kahori\\AppData\\Roaming\\npm-cache\\_git-remotes\\_templates --mirror git@github.com:web\r\npack/compression-webpack-plugin.git C:\\Users\\myusername\\AppData\\Roaming\\npm-cache\\_git-remotes\\git-github-com-webpack-compression-webpack-plugin-git-7e55907cd54a2e91b\r\n96d25a660acc6a2a6453f54-e286d0b5\r\nnpm ERR! Cloning into bare repository 'C:\\Users\\myusername\\AppData\\Roaming\\npm-cache\\_git-remotes\\git-github-com-webpack-compression-webpack-plugin-git-7e55907cd54a2e\r\n91b96d25a660acc6a2a6453f54-e286d0b5'...\r\nnpm ERR! ssh: connect to host github.com port 22: Connection timed out\r\nnpm ERR! fatal: Could not read from remote repository.\r\nnpm ERR!\r\nnpm ERR! Please make sure you have the correct access rights\r\nnpm ERR! and the repository exists.\r\nnpm ERR!\r\n```\r\n</details>\r\n\r\n### supporting information:\r\n\r\n - `npm -v` prints:  3.10.3\r\n - `node -v` prints: v6.7.0\r\n - `npm config get registry` prints: https://registry.npmjs.org/\r\n - Windows, OS X, or Linux?: Windows 7\r\n - Network issues:\r\n   - Geographic location where npm was run:\r\n   - [X] I use a proxy to connect to the npm registry.\r\n   - [ ] I use a proxy to connect to the web.\r\n   - [X] I use a proxy when downloading Git repos.\r\n\r\n - `npm config list` prints:\r\n\r\n<details>\r\n```\r\n; cli configs\r\nuser-agent = \"npm/3.10.3 node/v6.7.0 win32 x64\"\r\n\r\n; userconfig C:\\Users\\findeis.kahori\\.npmrc\r\nhttps-proxy = \"http://myusername:password@proxy.server.com:8080/\"\r\nproxy = \"http://myusername:password@proxy.server.com:8080/\"\r\nstrict-ssl = false\r\n\r\n; builtin config undefined\r\nhttps-proxy http://proxy.swm.de:8080 = true\r\nprefix = \"C:\\\\Users\\\\myusername\\\\AppData\\\\Roaming\\\\npm\"\r\nproxy http://proxy.swm.de:8080 = true\r\nstrict-ssl = false\r\n\r\n; node bin location = C:\\Program Files\\nodejs\\node.exe\r\n; cwd = C:\\Windows\\system32\r\n; HOME = C:\\Users\\myusername\r\n; \"npm config ls -l\" to show all defaults.\r\n\r\n `git config --global -l `  prints:\r\nuser.name=[gitUsername]\r\nuser.email=[my e-mail address]\r\nhttp.proxy=http://[proxyUsername]:[ProxyPassword]@proxy.server.com:8080\r\nhttp.sslverify=false\r\nhttps.proxy=https://[proxyUsername]:[ProxyPassword]@proxy.server.com:8080\r\nhttps.sslverify=false\r\nurl.https://github.com.insteadof=git://github.com\r\nurl.http://github.com.insteadof=git://github.com\r\n```\r\n</details>\r\n\r\n[npm-debug_copy.txt](https://github.com/npm/npm/files/513408/npm-debug_copy.txt)\r\n\r\n  ----------------------------------------------------------------------------\r\nThank you in advance for your help!\r\n\r\nKind regards,\r\n\r\nKahori\r\n\r\n \r\n"},"comment":{"url":"https://api.github.com/repos/npm/npm/issues/comments/255062864","html_url":"https://github.com/npm/npm/issues/14196#issuecomment-255062864","issue_url":"https://api.github.com/repos/npm/npm/issues/14196","id":255062864,"user":{"login":"devendrapratapsingh","id":6231019,"avatar_url":"https://avatars.githubusercontent.com/u/6231019?v=3","gravatar_id":"","url":"https://api.github.com/users/devendrapratapsingh","html_url":"https://github.com/devendrapratapsingh","followers_url":"https://api.github.com/users/devendrapratapsingh/followers","following_url":"https://api.github.com/users/devendrapratapsingh/following{/other_user}","gists_url":"https://api.github.com/users/devendrapratapsingh/gists{/gist_id}","starred_url":"https://api.github.com/users/devendrapratapsingh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/devendrapratapsingh/subscriptions","organizations_url":"https://api.github.com/users/devendrapratapsingh/orgs","repos_url":"https://api.github.com/users/devendrapratapsingh/repos","events_url":"https://api.github.com/users/devendrapratapsingh/events{/privacy}","received_events_url":"https://api.github.com/users/devendrapratapsingh/received_events","type":"User","site_admin":false},"created_at":"2016-10-20T09:58:18Z","updated_at":"2016-10-20T09:58:18Z","body":"To fix this issue, I followed below steps:\r\n\r\nCheck if you working behind a proxy server, If yes then\r\n\r\nIn windows command prompt, set your proxy\r\nset HTTP_PROXY=http://[proxy_user_name]:[password]@[proxy_server]:[proxy_port]\r\nset HTTPS_PROXY=%HTTP_PROXY%\r\nbut above setting will for that particular window\r\n\r\nafter that set the proxy for npm like below\r\nnpm config set proxy http://[proxy_user_name]:[password]@[proxy_server]:[proxy_port]\r\nnpm config set https_proxy http://[proxy_user_name]:[password]@[proxy_server]:[proxy_port]\r\n\r\nonce you set above proxy setting for windows command prompt and npm, you are all set to install angular-cli\r\n\r\nrun below command to install:\r\n\r\nnpm install -g angular-cli\r\nlet me know, if this doesn't work for windows, for the mac also use equivalent command to this. "}}
{"actor":{"display_login":"devendrapratapsingh"}}