Skip to content

Unable to install angular-cli #2768

Description

@skdhir

Details:

OS?

Windows 7, 8 or 10. Linux (which distribution). Mac OSX (Yosemite? El Capitan?)
Windows 7 Enterprise / 64 bit

Versions.

Please run ng --version. If there's nothing outputted, please run in a Terminal: node --version and paste the result here:
node: v6.7.0
npm : 3.10.8
git: 2.10.1.Windows.1

Repro steps.

Was this an app that wasn't created using the CLI? What change did you do on your code? etc.

  • I have a project successfully running locally: Angular2 / Typescript / npm
  • I did setup proxy for npm using command, so so npm install for other packages work fine
  • Now to deploy I wanted to use angular-cli
  • tried command: npm install -g angular-cli and got bunch of errors
  • I thought may be angular-cli is not able to get webpack, so ran command npm install -g webpack and it worked fine
  • I googles and lot of ppl said, its because of proxy, so ran following:
    set HTTP_PROXY=http://[proxy user name]:[URL encoded password]@[proxy server]:[proxy port]
set HTTPS_PROXY=%HTTP_PROXY%
setx HTTP_PROXY %HTTP_PROXY%
setx HTTPS_PROXY %HTTP_PROXY%
npm config set proxy %HTTP_PROXY%
npm config set https-proxy %HTTP_PROXY%
npm config set strict-ssl false
npm set registry https://registry.npmjs.org/
git config --global https.proxy %HTTP_PROXY%
git config --global http.proxy %HTTP_PROXY%
git config --global url."https://".insteadOf git://
git config --global url."https://github.com/".insteadOf git@github.com
### The log given by the failure.
c:\work\projects\gitRepo\AngularProjects\angular2-click>npm install -g angular-cli
npm WARN addRemoteGit Error: Command failed: git -c core.longpaths=true config --get remote.origin.url
npm WARN addRemoteGit
npm WARN addRemoteGit at ChildProcess.exithandler (child_process.js:206:12)
npm WARN addRemoteGit at emitTwo (events.js:106:13)
npm WARN addRemoteGit at ChildProcess.emit (events.js:191:7)
npm WARN addRemoteGit at maybeClose (internal/child_process.js:877:16)
npm WARN addRemoteGit at Socket.<anonymous> (internal/child_process.js:334:11)
npm WARN addRemoteGit at emitOne (events.js:96:13)
npm WARN addRemoteGit at Socket.emit (events.js:188:7)
npm WARN addRemoteGit at Pipe._handle.close [as _onclose] (net.js:493:12)
npm WARN addRemoteGit webpack/compression-webpack-plugin#7e55907cd54a2e91b96d25a660acc6a2a6453f54 resetting remote C:\Users\sd40040\AppData\Roaming\npm-cache
\_git-remotes\git-github-com-webpack-compression-webpack-plugin-git-7e55907cd54a2e91b96d25a660acc6a2a6453f54-ec76b2fe because of error: { Error: Command faile
d: git -c core.longpaths=true config --get remote.origin.url
npm WARN addRemoteGit
npm WARN addRemoteGit at ChildProcess.exithandler (child_process.js:206:12)
npm WARN addRemoteGit at emitTwo (events.js:106:13)
npm WARN addRemoteGit at ChildProcess.emit (events.js:191:7)
npm WARN addRemoteGit at maybeClose (internal/child_process.js:877:16)
npm WARN addRemoteGit at Socket.<anonymous> (internal/child_process.js:334:11)
npm WARN addRemoteGit at emitOne (events.js:96:13)
npm WARN addRemoteGit at Socket.emit (events.js:188:7)
npm WARN addRemoteGit at Pipe._handle.close [as _onclose] (net.js:493:12)
npm WARN addRemoteGit killed: false,
npm WARN addRemoteGit code: 1,
npm WARN addRemoteGit signal: null,
npm WARN addRemoteGit cmd: 'git -c core.longpaths=true config --get remote.origin.url' }
npm ERR! git clone --template=C:\Users\sd40040\AppData\Roaming\npm-cache\_git-remotes\_templates --mirror git://github.com/webpack/compression-webpack-plugin.
git C:\Users\sd40040\AppData\Roaming\npm-cache\_git-remotes\git-github-com-webpack-compression-webpack-plugin-git-7e55907cd54a2e91b96d25a660acc6a2a6453f54-ec7
6b2fe: Cloning into bare repository 'C:\Users\sd40040\AppData\Roaming\npm-cache\_git-remotes\git-github-com-webpack-compression-webpack-plugin-git-7e55907cd54
a2e91b96d25a660acc6a2a6453f54-ec76b2fe'...
npm ERR! git clone --template=C:\Users\sd40040\AppData\Roaming\npm-cache\_git-remotes\_templates --mirror git://github.com/webpack/compression-webpack-plugin.
git C:\Users\sd40040\AppData\Roaming\npm-cache\_git-remotes\git-github-com-webpack-compression-webpack-plugin-git-7e55907cd54a2e91b96d25a660acc6a2a6453f54-ec7
6b2fe: fatal: unable to access 'https://github.com/webpack/compression-webpack-plugin.git/': SSL certificate problem: self signed certificate in certificate chain
> ---------------------------------------------------------------

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions