Skip to content

Instantly share code, notes, and snippets.

@hodrigohamalho
Last active August 29, 2015 14:17
Show Gist options
  • Save hodrigohamalho/03d285438243d209d708 to your computer and use it in GitHub Desktop.
Save hodrigohamalho/03d285438243d209d708 to your computer and use it in GitHub Desktop.
ATOM Installation on Windows Environment

When trying to install asciidoc-preview plugin this error pops up:

Fixing unable to connect to github.com errno: No error

It seems to be caused because you're trying to install this plugin behind a firewall.

First config git to use always https instead git protocol.

git config --global url."https://".insteadOf git://
git config --global url."https://github.com/".insteadOf git@github.com:

Now, edit the cache.js (hack)

C:\Users\OHW\AppData\Local\atom\app-0.187.0\resources\app\apm\node_modules\npm\lib\cache\add-remote-git.js
Insert on line 39: u = u.replace(/^git/, "https")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment