Does Atom prefer a particular version of Node?


#1

I’ve noticed I get different errors using apm depending on which node I have activated in nvm. Is there a preferred version for Atom to use?


#2

I’ve done some testing trying to figure it out since I have nvm installed

nvm Deactivated
apm

gives me

env: node: No such file or directory

Using node v0.11.11

I get
/Applications/Atom.app/Contents/Resources/app/apm/node_modules/atom-package-manager/node_modules/keytar/node_modules/bindings/bindings.js:83 throw e ^ Error: Module did not self-register. at Module.load (module.js:349:32) at Function.Module._load (module.js:305:12) at Module.require (module.js:357:17) at require (module.js:373:17) at bindings (/Applications/Atom.app/Contents/Resources/app/apm/node_modules/atom-package-manager/node_modules/keytar/node_modules/bindings/bindings.js:76:44) at Object.<anonymous> (/Applications/Atom.app/Contents/Resources/app/apm/node_modules/atom-package-manager/node_modules/keytar/lib/keytar.js:4:31) at Object.<anonymous> (/Applications/Atom.app/Contents/Resources/app/apm/node_modules/atom-package-manager/node_modules/keytar/lib/keytar.js:58:4) at Module._compile (module.js:449:26) at Object.Module._extensions..js (module.js:467:10) at Module.load (module.js:349:32)

Using node v0.8.6

I get:

/Applications/Atom.app/Contents/Resources/app/apm/node_modules/atom-package-manager/node_modules/keytar/node_modules/bindings/bindings.js:83 throw e ^ Error: Module version mismatch, refusing to load. at Object.Module._extensions..node (module.js:485:11) at Module.load (module.js:356:32) at Function.Module._load (module.js:312:12) at Module.require (module.js:362:17) at require (module.js:378:17) at bindings (/Applications/Atom.app/Contents/Resources/app/apm/node_modules/atom-package-manager/node_modules/keytar/node_modules/bindings/bindings.js:76:44) at Object.<anonymous> (/Applications/Atom.app/Contents/Resources/app/apm/node_modules/atom-package-manager/node_modules/keytar/lib/keytar.js:4:31) at Object.<anonymous> (/Applications/Atom.app/Contents/Resources/app/apm/node_modules/atom-package-manager/node_modules/keytar/lib/keytar.js:58:4) at Module._compile (module.js:449:26) at Object.Module._extensions..js (module.js:467:10)


#3

I’m not using nvm, but upon installing node v0.10.26, apm started working for me


#4

awesome thank you for sharing.


#5

I’m using nvm and got the same error as above for v0.8.6 when I had v0.8.26 activated. After switching to v0.10.24, everything worked great.


#6

0.6.x and 0.8.x are ancient already. Everybody should be using 0.10.x now