Build Atom fails Windows 8.1


I am trying to build Atom on my machine and it constantly fails on the install apm task.

Output from running script/build:

C:\atom [master]> script/build
Node: v0.10.29
npm: v1.4.26
Python: v2.7.8
Installing build modules…
Installing apm…
npm WARN git config --get remote.origin.url returned wrong result (git://
npm ERR! git clone git:// Cloning into bare repository ‘C:\Users\
npm ERR! git clone git:// fatal: read error: Invalid argument
npm ERR! Error: Command failed: Cloning into bare repository ‘C:\Users\fiske_000.atom.npm_git-remotes\git-github-com-
npm ERR! fatal: read error: Invalid argument
npm ERR!
npm ERR! at ChildProcess.exithandler (child_process.js:647:15)
npm ERR! at ChildProcess.emit (events.js:98:17)
npm ERR! at maybeClose (child_process.js:755:16)
npm ERR! at Process.ChildProcess._handle.onexit (child_process.js:822:5)
npm ERR! If you need help, you may report this entire log,
npm ERR! including the npm and node versions, at:
npm ERR!

npm ERR! System Windows_NT 6.2.9200
npm ERR! command “node” “C:\atom\build\node_modules\npm\bin\npm-cli.js” “–userconfig=C:\atom\.npmrc” “install”
npm ERR! cwd C:\atom\apm
npm ERR! node -v v0.10.29
npm ERR! npm -v 1.4.26
npm ERR! code 128

Awesome editor by the way!


Turns out it was because of the git protocol instead of http. Had to change my config to use http instead of git.

git config --global url."https://".insteadOf git://

After that I got past my error above but ran into another one.


Thanks for adding your fix.

And what’s that?


From what I can tell it is still related to the git protocol and apm not respecting global config change.

See apm issue #106

I went to the cache.js file mentioned in the bug and changed it to use “https:” but during the build it overwrote my changes so it fails with another call to git clone git://...