Cannot install merge-conflicts: proxy issue?


#1

Hey, I’m having issues installing merge-conflicts. I’ve set up proxy in .apmrc and .npmrc and can install other packages with no problem. However when trying to install merge-conflicts from Atom or the command line, I get this error:

Installing “merge-conflicts@1.2.7” failed.Hide output…

npm http GET https://registry.npmjs.org/underscore-plus
npm http GET https://registry.npmjs.org/emissary
npm http 304 https://registry.npmjs.org/emissary
npm http 304 https://registry.npmjs.org/underscore-plus
npm http GET https://registry.npmjs.org/underscore
npm http GET https://registry.npmjs.org/mixto
npm http GET https://registry.npmjs.org/property-accessors
npm WARN `git config --get remote.origin.url` returned wrong result (https://github.com/Benvie/harmony-collections.git) 
npm http 304 https://registry.npmjs.org/underscore
npm http 304 https://registry.npmjs.org/property-accessors
npm http 304 https://registry.npmjs.org/mixto
npm ERR! git clone https://github.com/Benvie/harmony-collections.git Cloning into bare repository 'D:\Users\GJBonthron\.atom\.node-gyp\.atom\.apm\_git-remotes\https-github-com-Benvie-harmony-collections-git-df214100'...
npm ERR! git clone https://github.com/Benvie/harmony-collections.git fatal: unable to access 'https://github.com/Benvie/harmony-collections.git/': Failed connect to github.com:443; No error
npm ERR! Error: Command failed: Cloning into bare repository 'D:\Users\GJBonthron\.atom\.node-gyp\.atom\.apm\_git-remotes\https-github-com-Benvie-harmony-collections-git-df214100'...
npm ERR! fatal: unable to access 'https://github.com/Benvie/harmony-collections.git/': Failed connect to github.com:443; No error
npm ERR! 
npm ERR!     at ChildProcess.exithandler (child_process.js:648:15)
npm ERR!     at ChildProcess.emit (events.js:98:17)
npm ERR!     at maybeClose (child_process.js:756:16)
npm ERR!     at Process.ChildProcess._handle.onexit (child_process.js:823:5)
npm ERR! If you need help, you may report this *entire* log,
npm ERR! including the npm and node versions, at:
npm ERR!     <http://github.com/npm/npm/issues>

npm ERR! System Windows_NT 6.1.7601
npm ERR! command "c:\\ProgramData\\chocolatey\\lib\\Atom.0.136.0\\tools\\Atom\\resources\\app\\apm\\node_modules\\atom-package-manager\\bin\\\\node.exe" "c:\\ProgramData\\chocolatey\\lib\\Atom.0.136.0\\tools\\Atom\\resources\\app\\apm\\node_modules\\atom-package-manager\\node_modules\\npm\\bin\\npm-cli.js" "--globalconfig" "c:\\ProgramData\\chocolatey\\lib\\Atom.0.136.0\\tools\\Atom\\resources\\app\\apm\\node_modules\\atom-package-manager\\.apmrc" "--userconfig" "D:\\Users\\GJBonthron\\.atom\\.apmrc" "install" "D:\\Users\\GJBonthron\\.atom\\.node-gyp\\.atom\\.apm\\merge-conflicts\\1.2.7\\package.tgz" "--target=0.17.0" "--arch=ia32"
npm ERR! cwd D:\Users\GJBONT~1\AppData\Local\Temp\apm-install-dir-11499-8108-14rznbj
npm ERR! node -v v0.10.32
npm ERR! npm -v 1.4.4
npm ERR! code 128
npm

Does anyone know why this might be occuring, and what I can do about it?

Thanks!


Proxy settings not fully respected in windows (still not working, please consider reopening)
#2

Have you followed the suggestions in the Debugging document? Also, could you give the following information?

  • Which version of Atom are you using?
  • What OS and version are you running?
  • Can you reproduce the issue after completely exiting Atom and restarting using atom --safe?

#3

I’m using version 0.136.0, on Windows 7.

Having looked through the suggestions in the Debugging doc, and run atom in safe mode, I’m still seeing the issue. Running with the dev console open gives the following stack trace:

Installing package merge-conflicts failed Error: Installing “merge-conflicts@1.2.7” failed.
  at c:\ProgramData\chocolatey\lib\atom.0.136.0\tools\atom\resources\app\node_modules\settings-view\lib\package-manager.js:246:21
  at exit (c:\ProgramData\chocolatey\lib\atom.0.136.0\tools\atom\resources\app\node_modules\settings-view\lib\package-manager.js:37:16)
  at BufferedProcess.triggerExitCallback (c:\ProgramData\chocolatey\lib\atom.0.136.0\tools\atom\resources\app\src\buffered-process.js:52:47)
  at ChildProcess.<anonymous> (c:\ProgramData\chocolatey\lib\atom.0.136.0\tools\atom\resources\app\src\buffered-process.js:74:18)
  at ChildProcess.emit (events.js:110:17)
  at Process.ChildProcess._handle.onexit (child_process.js:1072:12)
 
npm http GET https://registry.npmjs.org/underscore-plus
npm http GET https://registry.npmjs.org/emissary
npm http 304 https://registry.npmjs.org/emissary
npm http 304 https://registry.npmjs.org/underscore-plus
npm http GET https://registry.npmjs.org/underscore
npm http GET https://registry.npmjs.org/mixto
npm http GET https://registry.npmjs.org/property-accessors
npm WARN `git config --get remote.origin.url` returned wrong result (https://github.com/Benvie/harmony-collections.git) 
npm http 304 https://registry.npmjs.org/underscore
npm http 304 https://registry.npmjs.org/property-accessors
npm http 304 https://registry.npmjs.org/mixto
npm ERR! git clone https://github.com/Benvie/harmony-collections.git Cloning into bare repository 'D:\Users\GJBonthron\.atom\.node-gyp\.atom\.apm\_git-remotes\https-github-com-Benvie-harmony-collections-git-df214100'...
npm ERR! git clone https://github.com/Benvie/harmony-collections.git fatal: unable to access 'https://github.com/Benvie/harmony-collections.git/': Failed connect to github.com:443; No error
npm ERR! Error: Command failed: Cloning into bare repository 'D:\Users\GJBonthron\.atom\.node-gyp\.atom\.apm\_git-remotes\https-github-com-Benvie-harmony-collections-git-df214100'...
npm ERR! fatal: unable to access 'https://github.com/Benvie/harmony-collections.git/': Failed connect to github.com:443; No error
npm ERR! 
npm ERR!     at ChildProcess.exithandler (child_process.js:648:15)
npm ERR!     at ChildProcess.emit (events.js:98:17)
npm ERR!     at maybeClose (child_process.js:756:16)
npm ERR!     at Process.ChildProcess._handle.onexit (child_process.js:823:5)
npm ERR! If you need help, you may report this *entire* log,
npm ERR! including the npm and node versions, at:
npm ERR!     <http://github.com/npm/npm/issues>

npm ERR! System Windows_NT 6.1.7601
npm ERR! command "c:\\ProgramData\\chocolatey\\lib\\Atom.0.136.0\\tools\\Atom\\resources\\app\\apm\\node_modules\\atom-package-manager\\bin\\\\node.exe" "c:\\ProgramData\\chocolatey\\lib\\Atom.0.136.0\\tools\\Atom\\resources\\app\\apm\\node_modules\\atom-package-manager\\node_modules\\npm\\bin\\npm-cli.js" "--globalconfig" "c:\\ProgramData\\chocolatey\\lib\\Atom.0.136.0\\tools\\Atom\\resources\\app\\apm\\node_modules\\atom-package-manager\\.apmrc" "--userconfig" "D:\\Users\\GJBonthron\\.atom\\.apmrc" "install" "D:\\Users\\GJBonthron\\.atom\\.node-gyp\\.atom\\.apm\\merge-conflicts\\1.2.7\\package.tgz" "--target=0.17.0" "--arch=ia32"
npm ERR! cwd D:\Users\GJBONT~1\AppData\Local\Temp\apm-install-dir-11499-5272-q6fe0p
npm ERR! node -v v0.10.32
npm ERR! npm -v 1.4.4
npm ERR! code 128
npm
 c:\ProgramData\chocolatey\lib\atom.0.136.0\tools\atom\resources\app\node_modules\settings-view\lib\…:172

Which looks identical to me.

Thanks again


#4

How did you install Atom?


#5

I originally used the ZIP, but I have since switched to the Chocolatey install.


#6

Have you tried the suggestions here:


#7

I mentioned in the first post, I’ve tried all the .apmrc and .npmrc settings that are suggested there unfortunately. As for the ntlm suggestion at the bottom, I expect that it might not go over well with the network admins!


#8

Where did you put your .apmrc file?


#9

D:\Users\GJBonthron\.atom\.apmrc


#10

Sounds like the right place. :confused: I don’t use Windows, so I’m at a loss. Maybe @mark_hahn or @batjko would have more ideas.


#11

I have no problem installing this package.
Win8, v137.

I’d say try to install from a different network, and confirm with the package author if they included any unusual dependencies?


#12

I also had no problems. But I work from home, my only admin is my wife, and she lets me run without a proxy.


#13

No unusual dependencies – just underscore-plus and emissary (until I port it over to event-kit, at least). I’ve never had to deal with a proxy for apm, so unfortunately I’m not much help either.

If you can clone from GitHub by other means (git command line, GitHub for Windows), maybe you could clone the repository and run apm install . in its root directory? You’d need to pull and re-install manually to get updates, but it might get you started, at least.


#14

Managed to install harmony on it’s own with that method, tried throught apm and npm, but still no luck with merge-conflicts as it tries to checkout harmony still.

Thanks for all the suggestions!


#15

Those errors look the same as what I had.
Edit: I first used these instructions:

git config --global user.name "myusername"
git config --global user.email "myusername@myemaildomain.com"

For git bash:
git config --global credential.helper cache

For mysgit:
git config --global credential.helper wincred

Then I added my git location to my windows path in the Environmental Variables.