npm install on Windows 10 (using _git for windows_) I am prompted with the following error: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 amcharts/ammap3 resetting remote C:\Users\voren\AppData\Roaming\npm-cache\_git-remotes\git-github-com-amcharts-ammap3-git-5b4c9c11 because of error: { 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 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 install on Windows 10 "amcharts3": "[email protected]:amcharts/amcharts3.git",
"ammap3": "[email protected]:amcharts/ammap3.git",
And it works for me now. I can submit a PR if this change doesn't cause problems on Linux/Mac. It certainly does for me.
Hey @Gelio, we looked into quickly and unfortunately this isn't working on windows.
Also, current way of installing the package is the recommended by amchart supporters.
Not sure how to proceed with it, let's keep it open for now and see if anyone has same/similar issue.
I have the same issue, though I believe for me it has something to do with corporate proxy and self signed SSL certificates. Using npm version 3.10.8, node version 6.8.0 with git bash on windows 7.
I think maybe my issue is a bit different. The provided workaround doesn't work for me. I can add the links to full github https urls in packages.json, but I'll get an error about self signed certificates (because of the proxy) when it tries to do 'git clone'. Even if I disable strict ssl checking in git, it will still give me that. However, cloning the repo manually will work fine (even with the exact command that npm executes), as npm seemingly ignores my git configurations when it performs git commands.
Anyways just documenting my findings here if it's relevant.
The same issue here.
npm: 3.10.8
node: v6.9.1
Windows 10
The others were successful except for
"amcharts3": "github:amcharts/amcharts3",
"ammap3": "github:amcharts/ammap3",
@AyerCai I think the reason is that github is too slow in China. maybe you can use proxy or clone these two repos to your machine
I was having the same problem. This is what I did which ultimately solved the issue:
git clone https://github.com/amcharts/ammap3.git
git clone https://github.com/amcharts/amcharts3.git
I bet this has something to do with corporate proxy. Works at home not office.
@nik2906 solution worked !!
Most helpful comment
I was having the same problem. This is what I did which ultimately solved the issue:
"ammap3": "github:amcharts/ammap3",
"amcharts3": "github:amcharts/amcharts3",
Inside this folder, clone the following repositories as-
git clone https://github.com/amcharts/ammap3.git
git clone https://github.com/amcharts/amcharts3.git