-
Notifications
You must be signed in to change notification settings - Fork 11.9k
Closed
Description
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 --versionand 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 [email protected]
### 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-git.colasdn.top-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-git.colasdn.top-webpack-compression-webpack-plugin-git-7e55907cd54a2e91b96d25a660acc6a2a6453f54-ec7
6b2fe: Cloning into bare repository 'C:\Users\sd40040\AppData\Roaming\npm-cache\_git-remotes\git-git.colasdn.top-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-git.colasdn.top-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
> ---------------------------------------------------------------
Metadata
Metadata
Assignees
Labels
No labels