[Updated to 1.4.1.3] Galaxy build error (fsevents, node-pre-gyp)

I just updated form Meteor 1.3 to 1.4.1.3.
It runs fine on my local system.
But I get following error when I deploy to Galaxy.
I don’t really understand this log but the problem seems to be around node-pre-gyp.

I tried to install meteor npm install node-pre-gyp --save but it did not help.

Any idea how to debug this?


v015
2016-10-25 17:22:16+02:00Building version 15.
v015
2016-10-25 17:22:17+02:00Step 1 : FROM meteor/galaxy-app@sha256:
v015
2016-10-25 17:22:17+02:00 ---> cf42d234ee20
v015
2016-10-25 17:22:17+02:00Step 2 : RUN /bin/bash -x /app/setup.sh https://eu-west-1-galaxy-bundles.s3-eu-west-1.amazonaws.com/bundles/BTEA6QaAMaqZh9adY/20161025-151713/bundle.dFsdYiDZEacQqykSR.tgz?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAJ73MF4INKDN2D76A%2F20161025%2Feu-west-1%2Fs3%2Faws4_request&X-Amz-Date=20161025T152216Z&X-Amz-Expires=900&X-Amz-SignedHeaders=host&X-Amz-Signature=7578d95b3f29b1cb60eee06f350060b3734af9d2d197c1fc2e330bef2442123c
v015
2016-10-25 17:22:17+02:00 ---> [Warning] Your kernel does not support swap limit capabilities, memory limited without swap.
v015
2016-10-25 17:22:17+02:00 ---> Running in 70c5ae327f12
v015
2016-10-25 17:22:17+02:00+ set -ex
v015
2016-10-25 17:22:17+02:00+ su meteor -c 'cd /app && curl -sS '\''https://eu-west-1-galaxy-bundles.s3-eu-west-1.amazonaws.com/c'\'' | tar xz -m'
v015
2016-10-25 17:22:19+02:00+ cd /app/bundle
v015
2016-10-25 17:22:19+02:00+ export NODE_VERSION
v015
2016-10-25 17:22:19+02:00++ /app/select_node_version.sh
v015
2016-10-25 17:22:19+02:00+ NODE_VERSION=4.6.1
v015
2016-10-25 17:22:19+02:00+ /app/install_node.sh
v015
2016-10-25 17:22:19+02:00Installing node version 4.6.1 to /node-v4.6.1-linux-x64
v015
2016-10-25 17:22:19+02:00+ curl -SLO https://nodejs.org/dist/v4.6.1/node-v4.6.1-linux-x64.tar.gz
v015
2016-10-25 17:22:19+02:00 % Total % Received % Xferd Average Speed Time Time Time Current
v015
2016-10-25 17:22:19+02:00 Dload Upload Total Spent Left Speed
v015
2016-10-25 17:22:22+02:00
 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
 21 11.5M 21 2559k 0 0 2592k 0 0:00:04 --:--:-- 0:00:04 2590k
 90 11.5M 90 10.4M 0 0 5514k 0 0:00:02 0:00:01 0:00:01 5513k
100 11.5M 100 11.5M 0 0 5840k 0 0:00:02 0:00:02 --:--:-- 5841k
v015
2016-10-25 17:22:22+02:00+ tar -xzf node-v4.6.1-linux-x64.tar.gz -C /
v015
2016-10-25 17:22:22+02:00+ rm node-v4.6.1-linux-x64.tar.gz
v015
2016-10-25 17:22:22+02:00+ export PATH=/node-v4.6.1-linux-x64/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
v015
2016-10-25 17:22:22+02:00+ PATH=/node-v4.6.1-linux-x64/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
v015
2016-10-25 17:22:22+02:00+ npm -g install npm@latest
v015
2016-10-25 17:22:29+02:00/node-v4.6.1-linux-x64/bin/npm -> /node-v4.6.1-linux-x64/lib/node_modules/npm/bin/npm-cli.js
v015
2016-10-25 17:22:30+02:00npm@3.10.9 /node-v4.6.1-linux-x64/lib/node_modules/npm
v015
2016-10-25 17:22:30+02:00+ pushd programs/server
v015
2016-10-25 17:22:30+02:00/app/bundle/programs/server /app/bundle
v015
2016-10-25 17:22:30+02:00+ su meteor -c 'PATH='\''/node-v4.6.1-linux-x64/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin'\'' npm install'
v015
2016-10-25 17:22:41+02:00
v015
2016-10-25 17:22:41+02:00> fibers@1.0.15 install /app/bundle/programs/server/node_modules/fibers
v015
2016-10-25 17:22:41+02:00> node build.js || nodejs build.js
v015
2016-10-25 17:22:41+02:00
v015
2016-10-25 17:22:41+02:00`linux-x64-46` exists; testing
v015
2016-10-25 17:22:41+02:00Binary is fine; exiting
v015
2016-10-25 17:22:41+02:00
v015
2016-10-25 17:22:41+02:00> meteor-dev-bundle@0.0.0 install /app/bundle/programs/server
v015
2016-10-25 17:22:41+02:00> node npm-rebuild.js
v015
2016-10-25 17:22:41+02:00
v015
2016-10-25 17:22:46+02:00
v015
2016-10-25 17:22:46+02:00> fsevents@1.0.14 install /app/bundle/programs/server/npm/node_modules/meteor/momentjs_moment/node_modules/fsevents
v015
2016-10-25 17:22:46+02:00> node-pre-gyp install --fallback-to-build
v015
2016-10-25 17:22:46+02:00
v015
2016-10-25 17:22:46+02:00module.js:327
v015
2016-10-25 17:22:46+02:00 throw err;
v015
2016-10-25 17:22:46+02:00 ^
v015
2016-10-25 17:22:46+02:00
v015
2016-10-25 17:22:46+02:00Error: Cannot find module '../'
v015
2016-10-25 17:22:46+02:00 at Function.Module._resolveFilename (module.js:325:15)
v015
2016-10-25 17:22:46+02:00 at Function.Module._load (module.js:276:25)
v015
2016-10-25 17:22:46+02:00 at Module.require (module.js:353:17)
v015
2016-10-25 17:22:46+02:00 at require (internal/module.js:12:17)
v015
2016-10-25 17:22:46+02:00 at Object.<anonymous> (/app/bundle/programs/server/npm/node_modules/meteor/momentjs_moment/node_modules/fsevents/node_modules/.bin/node-pre-gyp:15:20)
v015
2016-10-25 17:22:46+02:00 at Module._compile (module.js:409:26)
v015
2016-10-25 17:22:46+02:00 at Object.Module._extensions..js (module.js:416:10)
v015
2016-10-25 17:22:46+02:00 at Module.load (module.js:343:32)
v015
2016-10-25 17:22:46+02:00 at Function.Module._load (module.js:300:12)
v015
2016-10-25 17:22:46+02:00 at Function.Module.runMain (module.js:441:10)
v015
2016-10-25 17:22:46+02:00
v015
2016-10-25 17:22:46+02:00npm ERR! Linux 4.4.0-28-generic
v015
2016-10-25 17:22:46+02:00npm ERR! argv "/node-v4.6.1-linux-x64/bin/node" "/node-v4.6.1-linux-x64/bin/npm" "rebuild" "--no-bin-links" "--update-binary"
v015
2016-10-25 17:22:46+02:00npm ERR! node v4.6.1
v015
2016-10-25 17:22:46+02:00npm ERR! npm v3.10.9
v015
2016-10-25 17:22:46+02:00npm ERR! code ELIFECYCLE
v015
2016-10-25 17:22:46+02:00npm ERR! fsevents@1.0.14 install: `node-pre-gyp install --fallback-to-build`
v015
2016-10-25 17:22:46+02:00npm ERR! Exit status 1
v015
2016-10-25 17:22:46+02:00npm ERR!
v015
2016-10-25 17:22:46+02:00npm ERR! Failed at the fsevents@1.0.14 install script 'node-pre-gyp install --fallback-to-build'.
v015
2016-10-25 17:22:46+02:00npm ERR! Make sure you have the latest version of node.js and npm installed.
v015
2016-10-25 17:22:46+02:00npm ERR! If you do, this is most likely a problem with the fsevents package,
v015
2016-10-25 17:22:46+02:00npm ERR! not with npm itself.
v015
2016-10-25 17:22:46+02:00npm ERR! Tell the author that this fails on your system:
v015
2016-10-25 17:22:46+02:00npm ERR! node-pre-gyp install --fallback-to-build
v015
2016-10-25 17:22:46+02:00npm ERR! You can get information on how to open an issue for this project with:
v015
2016-10-25 17:22:46+02:00npm ERR! npm bugs fsevents
v015
2016-10-25 17:22:46+02:00npm ERR! Or if that isn't available, you can get their info via:
v015
2016-10-25 17:22:46+02:00npm ERR! npm owner ls fsevents
v015
2016-10-25 17:22:46+02:00npm ERR! There is likely additional logging output above.
v015
2016-10-25 17:22:46+02:00
v015
2016-10-25 17:22:46+02:00npm ERR! Please include the following file with any support request:
v015
2016-10-25 17:22:46+02:00npm ERR! /app/bundle/programs/server/npm/node_modules/meteor/momentjs_moment/npm-debug.log
v015
2016-10-25 17:22:46+02:00
v015
2016-10-25 17:22:46+02:00npm WARN meteor-dev-bundle@0.0.0 No description
v015
2016-10-25 17:22:46+02:00npm WARN meteor-dev-bundle@0.0.0 No repository field.
v015
2016-10-25 17:22:46+02:00npm WARN meteor-dev-bundle@0.0.0 No license field.
v015
2016-10-25 17:22:46+02:00npm ERR! Linux 4.4.0-28-generic
v015
2016-10-25 17:22:46+02:00npm ERR! argv "/node-v4.6.1-linux-x64/bin/node" "/node-v4.6.1-linux-x64/bin/npm" "install"
v015
2016-10-25 17:22:46+02:00npm ERR! node v4.6.1
v015
2016-10-25 17:22:46+02:00npm ERR! npm v3.10.9
v015
2016-10-25 17:22:46+02:00npm ERR! code ELIFECYCLE
v015
2016-10-25 17:22:46+02:00npm ERR! meteor-dev-bundle@0.0.0 install: `node npm-rebuild.js`
v015
2016-10-25 17:22:46+02:00npm ERR! Exit status 1
v015
2016-10-25 17:22:46+02:00npm ERR!
v015
2016-10-25 17:22:46+02:00npm ERR! Failed at the meteor-dev-bundle@0.0.0 install script 'node npm-rebuild.js'.
v015
2016-10-25 17:22:46+02:00npm ERR! Make sure you have the latest version of node.js and npm installed.
v015
2016-10-25 17:22:46+02:00npm ERR! If you do, this is most likely a problem with the meteor-dev-bundle package,
v015
2016-10-25 17:22:46+02:00npm ERR! not with npm itself.
v015
2016-10-25 17:22:46+02:00npm ERR! Tell the author that this fails on your system:
v015
2016-10-25 17:22:46+02:00npm ERR! node npm-rebuild.js
v015
2016-10-25 17:22:46+02:00npm ERR! You can get information on how to open an issue for this project with:
v015
2016-10-25 17:22:46+02:00npm ERR! npm bugs meteor-dev-bundle
v015
2016-10-25 17:22:46+02:00npm ERR! Or if that isn't available, you can get their info via:
v015
2016-10-25 17:22:46+02:00npm ERR! npm owner ls meteor-dev-bundle
v015
2016-10-25 17:22:46+02:00npm ERR! There is likely additional logging output above.
v015
2016-10-25 17:22:46+02:00
v015
2016-10-25 17:22:46+02:00npm ERR! Please include the following file with any support request:
v015
2016-10-25 17:22:46+02:00npm ERR! /app/bundle/programs/server/npm-debug.log
v015
2016-10-25 17:22:47+02:00Removing intermediate container 70c5ae327f12
v015
2016-10-25 17:22:47+02:00Failed to build version 15. Maximum retries reached.