hydrogen: hydrogen failed install on mac

I use apm install Hydrogen then report error

zeromq@4.5.0 install /private/var/folders/l6/4fy41n5d09dc91pbl_6yg79r0000gn/T/apm-install-dir-11763-2101-13od4uo.tsf6sf9a4i/node_modules/Hydrogen/node_modules/zeromq node scripts/prebuild-install.js || (npm run build:libzmq && node-gyp rebuild)

prebuild-install info begin Prebuild-install version 2.1.2 prebuild-install info looking for local prebuild @ prebuilds/zeromq-v4.5.0-electron-v49-darwin-x64.tar.gz prebuild-install info looking for cached prebuild @ /Users/howard/.atom/.node-gyp/.npm/_prebuilds/https-github.com-zeromq-zeromq.js-releases-download-v4.5.0-zeromq-v4.5.0-electron-v49-darwin-x64.tar.gz prebuild-install http request GET https://github.com/zeromq/zeromq.js/releases/download/v4.5.0/zeromq-v4.5.0-electron-v49-darwin-x64.tar.gz prebuild-install WARN install connect ETIMEDOUT 121.59.17.8:443

zeromq@4.5.0 build:libzmq /private/var/folders/l6/4fy41n5d09dc91pbl_6yg79r0000gn/T/apm-install-dir-11763-2101-13od4uo.tsf6sf9a4i/node_modules/Hydrogen/node_modules/zeromq node scripts/preinstall.js

/private/var/folders/l6/4fy41n5d09dc91pbl_6yg79r0000gn/T/apm-install-dir-11763-2101-13od4uo.tsf6sf9a4i └── (empty)

events.js:160 throw er; // Unhandled ‘error’ event ^

Error: connect ETIMEDOUT 121.59.17.8:443 at Object.exports._errnoException (util.js:1022:11) at exports._exceptionWithHostPort (util.js:1045:20) at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1087:14)

npm ERR! Darwin 16.6.0 npm ERR! argv “/private/var/folders/l6/4fy41n5d09dc91pbl_6yg79r0000gn/T/AppTranslocation/B84F93A1-5F3F-4452-8AAE-3B392072B1AF/d/Atom.app/Contents/Resources/app/apm/bin/node” “/private/var/folders/l6/4fy41n5d09dc91pbl_6yg79r0000gn/T/AppTranslocation/B84F93A1-5F3F-4452-8AAE-3B392072B1AF/d/Atom.app/Contents/Resources/app/apm/node_modules/.bin/npm” “run” “build:libzmq” npm ERR! node v6.9.5 npm ERR! npm v3.10.10 npm ERR! code ELIFECYCLE npm ERR! zeromq@4.5.0 build:libzmq: node scripts/preinstall.js npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the zeromq@4.5.0 build:libzmq script ‘node scripts/preinstall.js’. npm ERR! Make sure you have the latest version of node.js and npm installed. npm ERR! If you do, this is most likely a problem with the zeromq package, npm ERR! not with npm itself. npm ERR! Tell the author that this fails on your system: npm ERR! node scripts/preinstall.js npm ERR! You can get information on how to open an issue for this project with: npm ERR! npm bugs zeromq npm ERR! Or if that isn’t available, you can get their info via: npm ERR! npm owner ls zeromq npm ERR! There is likely additional logging output above. npm WARN Local package.json exists, but node_modules missing, did you mean to install?

npm ERR! Please include the following file with any support request: npm ERR! /private/var/folders/l6/4fy41n5d09dc91pbl_6yg79r0000gn/T/apm-install-dir-11763-2101-13od4uo.tsf6sf9a4i/node_modules/Hydrogen/node_modules/zeromq/npm-debug.log npm WARN enoent ENOENT: no such file or directory, open ‘/private/var/folders/l6/4fy41n5d09dc91pbl_6yg79r0000gn/T/apm-install-dir-11763-2101-13od4uo.tsf6sf9a4i/package.json’ npm WARN apm-install-dir-11763-2101-13od4uo.tsf6sf9a4i No description npm WARN apm-install-dir-11763-2101-13od4uo.tsf6sf9a4i No repository field. npm WARN apm-install-dir-11763-2101-13od4uo.tsf6sf9a4i No README data npm WARN apm-install-dir-11763-2101-13od4uo.tsf6sf9a4i No license field. npm ERR! Darwin 16.6.0 npm ERR! argv “/private/var/folders/l6/4fy41n5d09dc91pbl_6yg79r0000gn/T/AppTranslocation/B84F93A1-5F3F-4452-8AAE-3B392072B1AF/d/Atom.app/Contents/Resources/app/apm/bin/node” “/private/var/folders/l6/4fy41n5d09dc91pbl_6yg79r0000gn/T/AppTranslocation/B84F93A1-5F3F-4452-8AAE-3B392072B1AF/d/Atom.app/Contents/Resources/app/apm/node_modules/npm/bin/npm-cli.js” “–globalconfig” “/Users/howard/.atom/.apm/.apmrc” “–userconfig” “/Users/howard/.atom/.apmrc” “install” “/private/var/folders/l6/4fy41n5d09dc91pbl_6yg79r0000gn/T/d-11763-2101-3hu5z7.r7ipe3ik9/package.tgz” “–runtime=electron” “–target=1.3.15” “–arch=x64” “–global-style” npm ERR! node v6.9.5 npm ERR! npm v3.10.10 npm ERR! code ELIFECYCLE

npm ERR! zeromq@4.5.0 install: node scripts/prebuild-install.js || (npm run build:libzmq && node-gyp rebuild) npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the zeromq@4.5.0 install script ‘node scripts/prebuild-install.js || (npm run build:libzmq && node-gyp rebuild)’. npm ERR! Make sure you have the latest version of node.js and npm installed. npm ERR! If you do, this is most likely a problem with the zeromq package, npm ERR! not with npm itself. npm ERR! Tell the author that this fails on your system: npm ERR! node scripts/prebuild-install.js || (npm run build:libzmq && node-gyp rebuild) npm ERR! You can get information on how to open an issue for this project with: npm ERR! npm bugs zeromq npm ERR! Or if that isn’t available, you can get their info via: npm ERR! npm owner ls zeromq npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request: npm ERR! /private/var/folders/l6/4fy41n5d09dc91pbl_6yg79r0000gn/T/apm-install-dir-11763-2101-13od4uo.tsf6sf9a4i/npm-debug.log npm ERR! code 1

About this issue

  • Original URL
  • State: closed
  • Created 7 years ago
  • Comments: 17 (6 by maintainers)

Most upvoted comments

@gyh75520 I have solved it! Maybe it is your hosts problem. You can change your /etc/hosts file according to here.

On MacOS 10.12.5, I have successfully installed hydrogen with the following versions of apm, npm, and node:

screen shot 2017-07-03 at 11 01 21 am

@gyh75520 If you are using a 32 bit system, double check that you are using Python 2 instead of Python 3 for installation. ref