hemanth / node-nightly

node-nightly at your fingertips!
https://git.io/node-nightly
MIT License
233 stars 20 forks source link

Issue with Node 7.9.0 32 bit #43

Open agjs opened 6 years ago

agjs commented 6 years ago

When running node-nightly on 32-bit version, process.arch returns "ia32" which doesn't exist anywhere in node repositories neither in the files array in node-nightly-version module.

I've fixed this for myself by modifying the index.js in node-nightly.

// line 24
arch = process.arch === 'ia32' ? 'x86' : process.arch,

This fixed it for me. I'm not gonna do the pull request since this can be done better. I just wanted to inform you of this issue as other people might have the same issues.

agjs commented 6 years ago

I've created a pull request. In case you find the changes acceptable, please merge it.