Meteor 1.4.2.3 deploy error. node-pre-gyp: not found

We are trying migrate to galaxy but getting that error when deploy. Locally and in AWS our application works fine.

$DEPLOY_HOSTNAME=galaxy.meteor.com meteor deploy myapp.meteorapp.com --settings settings.json

Can someone help me, please?

We are note using kadira (Galaxy builds failing - `node-pre-gyp`)

setting.json

{
  "galaxy.meteor.com": {
    "env": {
      "ROOT_URL": "http://myapp.meteorapp.com/",
      "MONGO_URL": "Set ",
      "MAIL_URL": "Set"
    }
  }
}
2017-01-12 15:12:31-02:00Building version 2.
v002
2017-01-12 15:12:31-02:00Step 1 : FROM meteor/galaxy-app@sha256:3c8bbae726a5206ad24a856b985bce3d2b04303c50533a707d0ba0dfd7ff47c3
v002
2017-01-12 15:12:31-02:00 ---> 79a092003d28
v002
2017-01-12 15:12:31-02:00Step 2 : RUN /bin/bash -x /app/setup.sh https://prod-galaxy-bundles.s3.amazonaws.com/bundles/9ue5Amr5LPqnHKvPM/20170112-170933/bundle.yJPAgFy9NBZ9vKaDF.tgz?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAJ4JU4KHU7CAVLZ3Q%2F20170112%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20170112T171231Z&X-Amz-Expires=900&X-Amz-SignedHeaders=host&X-Amz-Signature=6141485dd6aecd92e0adfa0112a87e821e0b8a5fcbf72123132c3e904ea6e9da
v002
2017-01-12 15:12:31-02:00 ---> [Warning] Your kernel does not support swap limit capabilities, memory limited without swap.
v002
2017-01-12 15:12:31-02:00 ---> Running in 80ec5397ab89
v002
2017-01-12 15:12:31-02:00+ set -ex
v002
2017-01-12 15:12:31-02:00+ su meteor -c 'cd /app && curl -sS '\''https://prod-galaxy-bundles.s3.amazonaws.com/bundles/9ue5Amr5LPqnHKvPM/20170112-170933/bundle.yJPAgFy9NBZ9vKaDF.tgz?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAJ4JU4KHU7CAVLZ3Q%2F20170112%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20170112T171231Z&X-Amz-Expires=900&X-Amz-SignedHeaders=host&X-Amz-Signature=6141485dd6aecd92e0adfa0112a87e821e0b8a5fcbf72123132c3e904ea6e9da'\'' | tar xz -m'
v002
2017-01-12 15:12:32-02:00+ cd /app/bundle
v002
2017-01-12 15:12:32-02:00+ export NODE_VERSION
v002
2017-01-12 15:12:32-02:00++ /app/select_node_version.sh
v002
2017-01-12 15:12:32-02:00+ NODE_VERSION=4.6.2
v002
2017-01-12 15:12:32-02:00+ /app/install_node.sh
v002
2017-01-12 15:12:32-02:00node version 4.6.2 already installed.
v002
2017-01-12 15:12:32-02:00+ export PATH=/node-v4.6.2-linux-x64/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
v002
2017-01-12 15:12:32-02:00+ PATH=/node-v4.6.2-linux-x64/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
v002
2017-01-12 15:12:32-02:00+ npm -g install npm@latest
v002
2017-01-12 15:12:40-02:00/node-v4.6.2-linux-x64/bin/npm -> /node-v4.6.2-linux-x64/lib/node_modules/npm/bin/npm-cli.js
v002
2017-01-12 15:12:41-02:00npm@4.0.5 /node-v4.6.2-linux-x64/lib/node_modules/npm
v002
2017-01-12 15:12:41-02:00+ pushd programs/server
v002
2017-01-12 15:12:41-02:00+ su meteor -c 'PATH='\''/node-v4.6.2-linux-x64/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin'\'' npm install'
v002
2017-01-12 15:12:41-02:00/app/bundle/programs/server /app/bundle
v002
2017-01-12 15:12:44-02:00
v002
2017-01-12 15:12:44-02:00> fibers@1.0.15 install /app/bundle/programs/server/node_modules/fibers
v002
2017-01-12 15:12:44-02:00> node build.js || nodejs build.js
v002
2017-01-12 15:12:44-02:00
v002
2017-01-12 15:12:44-02:00`linux-x64-46` exists; testing
v002
2017-01-12 15:12:44-02:00Binary is fine; exiting
v002
2017-01-12 15:12:44-02:00
v002
2017-01-12 15:12:44-02:00> meteor-dev-bundle@0.0.0 install /app/bundle/programs/server
v002
2017-01-12 15:12:44-02:00> node npm-rebuild.js
v002
2017-01-12 15:12:44-02:00
v002
2017-01-12 15:12:44-02:00
v002
2017-01-12 15:12:44-02:00> bson@0.2.21 install /app/bundle/programs/server/npm/node_modules/meteor/cfs_gridfs/node_modules/mongodb/node_modules/bson
v002
2017-01-12 15:12:44-02:00> (node-gyp rebuild 2> builderror.log) || (exit 0)
v002
2017-01-12 15:12:44-02:00
v002
2017-01-12 15:12:45-02:00make: Entering directory `/app/bundle/programs/server/npm/node_modules/meteor/cfs_gridfs/node_modules/mongodb/node_modules/bson/build'
v002
2017-01-12 15:12:45-02:00 CXX(target) Release/obj.target/bson/ext/bson.o
v002
2017-01-12 15:12:46-02:00make: Leaving directory `/app/bundle/programs/server/npm/node_modules/meteor/cfs_gridfs/node_modules/mongodb/node_modules/bson/build'
v002
2017-01-12 15:12:46-02:00
v002
2017-01-12 15:12:46-02:00> kerberos@0.0.9 install /app/bundle/programs/server/npm/node_modules/meteor/cfs_gridfs/node_modules/mongodb/node_modules/kerberos
v002
2017-01-12 15:12:46-02:00> (node-gyp rebuild 2> builderror.log) || (exit 0)
v002
2017-01-12 15:12:46-02:00
v002
2017-01-12 15:12:47-02:00make: Entering directory `/app/bundle/programs/server/npm/node_modules/meteor/cfs_gridfs/node_modules/mongodb/node_modules/kerberos/build'
v002
2017-01-12 15:12:47-02:00 CXX(target) Release/obj.target/kerberos/lib/kerberos.o
v002
2017-01-12 15:12:47-02:00make: Leaving directory `/app/bundle/programs/server/npm/node_modules/meteor/cfs_gridfs/node_modules/mongodb/node_modules/kerberos/build'
v002
2017-01-12 15:12:47-02:00gridfs-stream@0.5.3 /app/bundle/programs/server/npm/node_modules/meteor/cfs_gridfs/node_modules/gridfs-stream
v002
2017-01-12 15:12:47-02:00mongodb@1.4.35 /app/bundle/programs/server/npm/node_modules/meteor/cfs_gridfs/node_modules/mongodb
v002
2017-01-12 15:12:47-02:00bson@0.2.21 /app/bundle/programs/server/npm/node_modules/meteor/cfs_gridfs/node_modules/mongodb/node_modules/bson
v002
2017-01-12 15:12:47-02:00nan@1.7.0 /app/bundle/programs/server/npm/node_modules/meteor/cfs_gridfs/node_modules/mongodb/node_modules/bson/node_modules/nan
v002
2017-01-12 15:12:47-02:00kerberos@0.0.9 /app/bundle/programs/server/npm/node_modules/meteor/cfs_gridfs/node_modules/mongodb/node_modules/kerberos
v002
2017-01-12 15:12:47-02:00nan@1.6.2 /app/bundle/programs/server/npm/node_modules/meteor/cfs_gridfs/node_modules/mongodb/node_modules/kerberos/node_modules/nan
v002
2017-01-12 15:12:47-02:00readable-stream@1.0.33 /app/bundle/programs/server/npm/node_modules/meteor/cfs_gridfs/node_modules/mongodb/node_modules/readable-stream
v002
2017-01-12 15:12:47-02:00core-util-is@1.0.1 /app/bundle/programs/server/npm/node_modules/meteor/cfs_gridfs/node_modules/mongodb/node_modules/readable-stream/node_modules/core-util-is
v002
2017-01-12 15:12:47-02:00isarray@0.0.1 /app/bundle/programs/server/npm/node_modules/meteor/cfs_gridfs/node_modules/mongodb/node_modules/readable-stream/node_modules/isarray
v002
2017-01-12 15:12:47-02:00string_decoder@0.10.31 /app/bundle/programs/server/npm/node_modules/meteor/cfs_gridfs/node_modules/mongodb/node_modules/readable-stream/node_modules/string_decoder
v002
2017-01-12 15:12:47-02:00inherits@2.0.1 /app/bundle/programs/server/npm/node_modules/meteor/cfs_gridfs/node_modules/mongodb/node_modules/readable-stream/node_modules/inherits
v002
2017-01-12 15:12:48-02:00
v002
2017-01-12 15:12:48-02:00> bcrypt@1.0.2 install /app/bundle/programs/server/npm/node_modules/bcrypt
v002
2017-01-12 15:12:48-02:00> node-pre-gyp install --fallback-to-build
v002
2017-01-12 15:12:48-02:00
v002
2017-01-12 15:12:48-02:00sh: 1: node-pre-gyp: not found
v002
2017-01-12 15:12:48-02:00
v002
2017-01-12 15:12:48-02:00npm ERR! Linux 4.4.0-45-generic
v002
2017-01-12 15:12:48-02:00npm ERR! argv "/node-v4.6.2-linux-x64/bin/node" "/node-v4.6.2-linux-x64/bin/npm" "rebuild" "--update-binary"
v002
2017-01-12 15:12:48-02:00npm ERR! node v4.6.2
v002
2017-01-12 15:12:48-02:00npm ERR! npm v4.0.5
v002
2017-01-12 15:12:48-02:00npm ERR! file sh
v002
2017-01-12 15:12:48-02:00npm ERR! code ELIFECYCLE
v002
2017-01-12 15:12:48-02:00npm ERR! errno ENOENT
v002
2017-01-12 15:12:48-02:00npm ERR! syscall spawn
v002
2017-01-12 15:12:48-02:00npm ERR! bcrypt@1.0.2 install: `node-pre-gyp install --fallback-to-build`
v002
2017-01-12 15:12:48-02:00npm ERR! spawn ENOENT
v002
2017-01-12 15:12:48-02:00npm ERR!
v002
2017-01-12 15:12:48-02:00npm ERR! Failed at the bcrypt@1.0.2 install script 'node-pre-gyp install --fallback-to-build'.
v002
2017-01-12 15:12:48-02:00npm ERR! Make sure you have the latest version of node.js and npm installed.
v002
2017-01-12 15:12:48-02:00npm ERR! If you do, this is most likely a problem with the bcrypt package,
v002
2017-01-12 15:12:48-02:00npm ERR! not with npm itself.
v002
2017-01-12 15:12:48-02:00npm ERR! Tell the author that this fails on your system:
v002
2017-01-12 15:12:48-02:00npm ERR! node-pre-gyp install --fallback-to-build
v002
2017-01-12 15:12:48-02:00npm ERR! You can get information on how to open an issue for this project with:
v002
2017-01-12 15:12:48-02:00npm ERR! npm bugs bcrypt
v002
2017-01-12 15:12:48-02:00npm ERR! Or if that isn't available, you can get their info via:
v002
2017-01-12 15:12:48-02:00npm ERR! npm owner ls bcrypt
v002
2017-01-12 15:12:48-02:00npm ERR! There is likely additional logging output above.
v002
2017-01-12 15:12:48-02:00
v002
2017-01-12 15:12:48-02:00npm ERR! Please include the following file with any support request:
v002
2017-01-12 15:12:48-02:00npm ERR! /app/bundle/programs/server/npm/npm-debug.log
v002
2017-01-12 15:12:48-02:00
v002
2017-01-12 15:12:48-02:00npm WARN meteor-dev-bundle@0.0.0 No description
v002
2017-01-12 15:12:48-02:00npm WARN meteor-dev-bundle@0.0.0 No repository field.
v002
2017-01-12 15:12:48-02:00npm WARN meteor-dev-bundle@0.0.0 No license field.
v002
2017-01-12 15:12:48-02:00npm ERR! Linux 4.4.0-45-generic
v002
2017-01-12 15:12:48-02:00npm ERR! argv "/node-v4.6.2-linux-x64/bin/node" "/node-v4.6.2-linux-x64/bin/npm" "install"
v002
2017-01-12 15:12:48-02:00npm ERR! node v4.6.2
v002
2017-01-12 15:12:48-02:00npm ERR! npm v4.0.5
v002
2017-01-12 15:12:48-02:00npm ERR! code ELIFECYCLE
v002
2017-01-12 15:12:48-02:00npm ERR! meteor-dev-bundle@0.0.0 install: `node npm-rebuild.js`
v002
2017-01-12 15:12:48-02:00npm ERR! Exit status 1
v002
2017-01-12 15:12:48-02:00npm ERR!
v002
2017-01-12 15:12:48-02:00npm ERR! Failed at the meteor-dev-bundle@0.0.0 install script 'node npm-rebuild.js'.
v002
2017-01-12 15:12:48-02:00npm ERR! Make sure you have the latest version of node.js and npm installed.
v002
2017-01-12 15:12:48-02:00npm ERR! If you do, this is most likely a problem with the meteor-dev-bundle package,
v002
2017-01-12 15:12:48-02:00npm ERR! not with npm itself.
v002
2017-01-12 15:12:48-02:00npm ERR! Tell the author that this fails on your system:
v002
2017-01-12 15:12:48-02:00npm ERR! node npm-rebuild.js
v002
2017-01-12 15:12:48-02:00npm ERR! You can get information on how to open an issue for this project with:
v002
2017-01-12 15:12:48-02:00npm ERR! npm bugs meteor-dev-bundle
v002
2017-01-12 15:12:48-02:00npm ERR! Or if that isn't available, you can get their info via:
v002
2017-01-12 15:12:48-02:00npm ERR! npm owner ls meteor-dev-bundle
v002
2017-01-12 15:12:48-02:00npm ERR! There is likely additional logging output above.
v002
2017-01-12 15:12:48-02:00
v002
2017-01-12 15:12:48-02:00npm ERR! Please include the following file with any support request:
v002
2017-01-12 15:12:48-02:00npm ERR! /app/bundle/programs/server/npm-debug.log
v002
2017-01-12 15:12:49-02:00Removing intermediate container 80ec5397ab89

Don’t use bcrypt 1.x. It still is incompatible with Meteor. Or Galaxy, anyway.