A Tale of Two Logs
The following npm install
of bcrypt
crashed.
npm info lifecycle bcrypt@1.0.2~install: bcrypt@1.0.2 > bcrypt@1.0.2 install /node_modules/bcrypt > node-pre-gyp install --fallback-to-build node-pre-gyp info it worked if it ends with ok node-pre-gyp verb cli [ '/usr/bin/node', node-pre-gyp verb cli '/node_modules/.bin/node-pre-gyp', node-pre-gyp verb cli 'install', node-pre-gyp verb cli '--fallback-to-build' ] node-pre-gyp info using node-pre-gyp@0.6.32 node-pre-gyp info using node@8.9.3 | linux | x64 node-pre-gyp verb command install [] node-pre-gyp info check checked for "/node_modules/bcrypt/lib/binding/bcrypt_lib.node" (not found) node-pre-gyp http GET https://github.com/kelektiv/node.bcrypt.js/releases/download/v1.0.2/bcrypt_lib-v1.0.2-node-v57-linux-x64.tar.gz node-pre-gyp http 200 https://github.com/kelektiv/node.bcrypt.js/releases/download/v1.0.2/bcrypt_lib-v1.0.2-node-v57-linux-x64.tar.gz node-pre-gyp info install unpacking bcrypt_lib.node node-pre-gyp info tarball done parsing tarball node-pre-gyp info validate Running test command: '/usr/bin/node --eval 'require(\'/node_modules/bcrypt/lib/binding/bcrypt_lib.node\')'' [bcrypt] Success: "/node_modules/bcrypt/lib/binding/bcrypt_lib.node" is installed via remote node-pre-gyp info ok npm verb lifecycle bcrypt@1.0.2~install: unsafe-perm in lifecycle true npm verb lifecycle bcrypt@1.0.2~install: PATH: /usr/lib/node_modules/npm/bin/node-gyp-bin:/node_modules/bcrypt/node_modules/.bin:/node_modules/.bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin npm verb lifecycle bcrypt@1.0.2~install: CWD: /node_modules/bcrypt
The following npm install
of bcrypt
worked.
npm info lifecycle bcrypt@1.0.2~install: bcrypt@1.0.2 > bcrypt@1.0.2 install /node_modules/bcrypt > node-pre-gyp install --fallback-to-build node-pre-gyp info it worked if it ends with ok node-pre-gyp verb cli [ '/usr/bin/node', node-pre-gyp verb cli '/node_modules/.bin/node-pre-gyp', node-pre-gyp verb cli 'install', node-pre-gyp verb cli '--fallback-to-build' ] node-pre-gyp info using node-pre-gyp@0.6.32 node-pre-gyp info using node@8.9.3 | linux | x64 node-pre-gyp verb command install [] node-pre-gyp info check checked for "/node_modules/bcrypt/lib/binding/bcrypt_lib.node" (not found) node-pre-gyp http GET https://github.com/kelektiv/node.bcrypt.js/releases/download/v1.0.2/bcrypt_lib-v1.0.2-node-v57-linux-x64.tar.gz node-pre-gyp ERR! Tried to download(undefined): https://github.com/kelektiv/node.bcrypt.js/releases/download/v1.0.2/bcrypt_lib-v1.0.2-node-v57-linux-x64.tar.gz node-pre-gyp ERR! Pre-built binaries not found for bcrypt@1.0.2 and node@8.9.3 (node-v57 ABI) (falling back to source compile with node-gyp) node-pre-gyp http getaddrinfo EAI_AGAIN github-production-release-asset-2e65be.s3.amazonaws.com:443 node-pre-gyp verb command build [ 'rebuild' ] gyp info it worked if it ends with ok gyp verb cli [ '/usr/bin/node', gyp verb cli '/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js', gyp verb cli 'clean' ] gyp info using node-gyp@3.6.2 gyp info using node@8.9.3 | linux | x64 gyp verb command clean [] gyp verb clean removing "build" directory gyp info ok gyp info it worked if it ends with ok gyp verb cli [ '/usr/bin/node', gyp verb cli '/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js', gyp verb cli 'configure', gyp verb cli '--fallback-to-build', gyp verb cli '--module=/node_modules/bcrypt/lib/binding/bcrypt_lib.node', gyp verb cli '--module_name=bcrypt_lib', gyp verb cli '--module_path=/node_modules/bcrypt/lib/binding' ] gyp info using node-gyp@3.6.2 gyp info using node@8.9.3 | linux | x64 gyp verb command configure [] gyp verb check python checking for Python executable "python2" in the PATH gyp verb `which` succeeded python2 /usr/bin/python2 gyp verb check python version `/usr/bin/python2 -c "import platform; print(platform.python_version());"` returned: "2.7.14\n" gyp verb get node dir no --target version specified, falling back to host node version: 8.9.3 gyp verb command install [ '8.9.3' ] gyp verb install input version string "8.9.3" gyp verb install installing version: 8.9.3 gyp verb install --ensure was passed, so won't reinstall if already installed gyp verb install version is already installed, need to check "installVersion" gyp verb got "installVersion" 9 gyp verb needs "installVersion" 9 gyp verb install version is good gyp verb get node dir target node version installed: 8.9.3 gyp verb build dir attempting to create "build" dir: /node_modules/bcrypt/build gyp verb build dir "build" dir needed to be created? /node_modules/bcrypt/build gyp verb build/config.gypi creating config file gyp verb build/config.gypi writing out config file: /node_modules/bcrypt/build/config.gypi gyp verb config.gypi checking for gypi file: /node_modules/bcrypt/config.gypi gyp verb common.gypi checking for gypi file: /node_modules/bcrypt/common.gypi gyp verb gyp gyp format was not specified; forcing "make" gyp info spawn /usr/bin/python2 gyp info spawn args [ '/usr/lib/node_modules/npm/node_modules/node-gyp/gyp/gyp_main.py', gyp info spawn args 'binding.gyp', gyp info spawn args '-f', gyp info spawn args 'make', gyp info spawn args '-I', gyp info spawn args '/node_modules/bcrypt/build/config.gypi', gyp info spawn args '-I', gyp info spawn args '/usr/lib/node_modules/npm/node_modules/node-gyp/addon.gypi', gyp info spawn args '-I', gyp info spawn args '/root/.node-gyp/8.9.3/include/node/common.gypi', gyp info spawn args '-Dlibrary=shared_library', gyp info spawn args '-Dvisibility=default', gyp info spawn args '-Dnode_root_dir=/root/.node-gyp/8.9.3', gyp info spawn args '-Dnode_gyp_dir=/usr/lib/node_modules/npm/node_modules/node-gyp', gyp info spawn args '-Dnode_lib_file=/root/.node-gyp/8.9.3/<(target_arch)/node.lib', gyp info spawn args '-Dmodule_root_dir=/node_modules/bcrypt', gyp info spawn args '-Dnode_engine=v8', gyp info spawn args '--depth=.', gyp info spawn args '--no-parallel', gyp info spawn args '--generator-output', gyp info spawn args 'build', gyp info spawn args '-Goutput_dir=.' ] gyp info ok gyp info it worked if it ends with ok gyp verb cli [ '/usr/bin/node', gyp verb cli '/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js', gyp verb cli 'build', gyp verb cli '--fallback-to-build', gyp verb cli '--module=/node_modules/bcrypt/lib/binding/bcrypt_lib.node', gyp verb cli '--module_name=bcrypt_lib', gyp verb cli '--module_path=/node_modules/bcrypt/lib/binding' ] gyp info using node-gyp@3.6.2 gyp info using node@8.9.3 | linux | x64 gyp verb command build [] gyp verb build type Release gyp verb architecture x64 gyp verb node dev dir /root/.node-gyp/8.9.3 gyp verb `which` succeeded for `make` /usr/bin/make gyp info spawn make gyp info spawn args [ 'V=1', 'BUILDTYPE=Release', '-C', 'build' ] make: Entering directory '/node_modules/bcrypt/build' g++ '-DNODE_GYP_MODULE_NAME=bcrypt_lib' '-DUSING_UV_SHARED=1' '-DUSING_V8_SHARED=1' '-DV8_DEPRECATION_WARNINGS=1' '-D_LARGEFILE_SOURCE' '-D_FILE_OFFSET_BITS=64' '-DBUILDING_NODE_EXTENSION' -I/root/.node-gyp/8.9.3/include/node -I/root/.node-gyp/8.9.3/src -I/root/.node-gyp/8.9.3/deps/uv/include -I/root/.node-gyp/8.9.3/deps/v8/include -I../../nan -fPIC -pthread -Wall -Wextra -Wno-unused-parameter -m64 -O3 -fno-omit-frame-pointer -fno-rtti -fno-exceptions -std=gnu++0x -MMD -MF ./Release/.deps/Release/obj.target/bcrypt_lib/src/blowfish.o.d.raw -c -o Release/obj.target/bcrypt_lib/src/blowfish.o ../src/blowfish.cc g++ '-DNODE_GYP_MODULE_NAME=bcrypt_lib' '-DUSING_UV_SHARED=1' '-DUSING_V8_SHARED=1' '-DV8_DEPRECATION_WARNINGS=1' '-D_LARGEFILE_SOURCE' '-D_FILE_OFFSET_BITS=64' '-DBUILDING_NODE_EXTENSION' -I/root/.node-gyp/8.9.3/include/node -I/root/.node-gyp/8.9.3/src -I/root/.node-gyp/8.9.3/deps/uv/include -I/root/.node-gyp/8.9.3/deps/v8/include -I../../nan -fPIC -pthread -Wall -Wextra -Wno-unused-parameter -m64 -O3 -fno-omit-frame-pointer -fno-rtti -fno-exceptions -std=gnu++0x -MMD -MF ./Release/.deps/Release/obj.target/bcrypt_lib/src/bcrypt.o.d.raw -c -o Release/obj.target/bcrypt_lib/src/bcrypt.o ../src/bcrypt.cc g++ '-DNODE_GYP_MODULE_NAME=bcrypt_lib' '-DUSING_UV_SHARED=1' '-DUSING_V8_SHARED=1' '-DV8_DEPRECATION_WARNINGS=1' '-D_LARGEFILE_SOURCE' '-D_FILE_OFFSET_BITS=64' '-DBUILDING_NODE_EXTENSION' -I/root/.node-gyp/8.9.3/include/node -I/root/.node-gyp/8.9.3/src -I/root/.node-gyp/8.9.3/deps/uv/include -I/root/.node-gyp/8.9.3/deps/v8/include -I../../nan -fPIC -pthread -Wall -Wextra -Wno-unused-parameter -m64 -O3 -fno-omit-frame-pointer -fno-rtti -fno-exceptions -std=gnu++0x -MMD -MF ./Release/.deps/Release/obj.target/bcrypt_lib/src/bcrypt_node.o.d.raw -c -o Release/obj.target/bcrypt_lib/src/bcrypt_node.o ../src/bcrypt_node.cc g++ -shared -pthread -rdynamic -m64 -Wl,-soname=bcrypt_lib.node -o Release/obj.target/bcrypt_lib.node -Wl,--start-group Release/obj.target/bcrypt_lib/src/blowfish.o Release/obj.target/bcrypt_lib/src/bcrypt.o Release/obj.target/bcrypt_lib/src/bcrypt_node.o -Wl,--end-group rm -rf "Release/bcrypt_lib.node" && cp -af "Release/obj.target/bcrypt_lib.node" "Release/bcrypt_lib.node" rm -rf "/node_modules/bcrypt/lib/binding/bcrypt_lib.node" && cp -af "Release/bcrypt_lib.node" "/node_modules/bcrypt/lib/binding/bcrypt_lib.node" touch Release/obj.target/action_after_build.stamp make: Leaving directory '/node_modules/bcrypt/build' gyp info ok node-pre-gyp info ok npm verb lifecycle bcrypt@1.0.2~install: unsafe-perm in lifecycle true npm verb lifecycle bcrypt@1.0.2~install: PATH: /usr/lib/node_modules/npm/bin/node-gyp-bin:/node_modules/bcrypt/node_modules/.bin:/node_modules/.bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin npm verb lifecycle bcrypt@1.0.2~install: CWD: /node_modules/bcrypt