[email protected] install
node-pre-gyp install –fallback-to-build
node-pre-gyp [##################] – reify:semver: timing reifyNode:node_modules/@mapbox/node-pre-gyp Completed ininfo it worked if it ends with ok
node-pre-gyp info using [email protected]
node-pre-gyp info using [email protected] | android | arm64
node-pre-gyp info check checked for “/data/data/com.termux/files/home/node-test/node_modules/bcrypt/lib/binding/napi-v3/bcrypt_lib.node” (not found)
node-pre-gyp http GET https://github.com/kelektiv/node.bcrypt.js/releases/download/v5.1.1/bcrypt_lib-v5.1.1-napi-v3-android-arm64-unknown.tar.gz
node-pre-gyp ERR! install response status 404 Not Found on https://github.com/kelektiv/node.bcrypt.js/releases/download/v5.1.1/bcrypt_lib-v5.1.1-napi-v3-android-arm64-unknown.tar.gz
node-pre-gyp WARN Pre-built binaries not installable for [email protected] and [email protected] (node-v115 ABI, unknown) (falling back to source compile with node-gyp)
node-pre-gyp WARN Hit error response status 404 Not Found on https://github.com/kelektiv/node.bcrypt.js/releases/download/v5.1.1/bcrypt_lib-v5.1.1-napi-v3-android-arm64-unknown.tar.gz
gyp info it worked if it ends with oktiming reifyNode:node_modules/@mapbox/node-pre-gyp Completed in 1297ms
gyp info using [email protected]
gyp info using [email protected] | android | arm64
gyp info ok #######] – reify:semver: timing reifyNode:node_modules/@mapbox/node-pre-gyp Completed in 1297ms
gyp info it worked if it ends with oktiming reifyNode:node_modules/@mapbox/node-pre-gyp Completed in 1297ms
gyp info using [email protected]
gyp info using [email protected] | android | arm64
gyp info find Python using Python version 3.11.8 found at “/data/data/com.termux/files/usr/bin/python3″97ms
[##################] – reify:semver: timing reifyNode:node_modules/@mapbox/node-pre-gyp Completed in 1297ms
gyp info spawn /data/data/com.termux/files/usr/bin/python3_modules/@mapbox/node-pre-gyp Completed in 1297ms
gyp info spawn args [
gyp info spawn args ‘/data/data/com.termux/files/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 ‘/data/data/com.termux/files/home/node-test/node_modules/bcrypt/build/config.gypi’,
gyp info spawn args ‘-I’,
gyp info spawn args ‘/data/data/com.termux/files/usr/lib/node_modules/npm/node_modules/node-gyp/addon.gypi’,
gyp info spawn args ‘-I’,
gyp info spawn args ‘/data/data/com.termux/files/home/.cache/node-gyp/20.11.1/include/node/common.gypi’,
gyp info spawn args ‘-Dlibrary=shared_library’,
gyp info spawn args ‘-Dvisibility=default’,
gyp info spawn args ‘-Dnode_root_dir=/data/data/com.termux/files/home/.cache/node-gyp/20.11.1’,
gyp info spawn args ‘-Dnode_gyp_dir=/data/data/com.termux/files/usr/lib/node_modules/npm/node_modules/node-gyp’,
gyp info spawn args ‘-Dnode_lib_file=/data/data/com.termux/files/home/.cache/node-gyp/20.11.1/<(target_arch)/node.lib’,
gyp info spawn args ‘-Dmodule_root_dir=/data/data/com.termux/files/home/node-test/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 spawn args ]
gyp: Undefined variable android_ndk_path in binding.gyp while trying to load binding.gypCompleted in 1297ms
gyp ERR! configure error ify:semver: timing reifyNode:node_modules/@mapbox/node-pre-gyp Completed in 1297ms
gyp ERR! stack Error: gyp failed with exit code: 1
gyp ERR! stack at ChildProcess. (/data/data/com.termux/files/usr/lib/node_modules/npm/node_modules/node-gyp/lib/configure.js:271:18)
gyp ERR! stack at ChildProcess.emit (node:events:518:28)
gyp ERR! stack at ChildProcess._handle.onexit (node:internal/child_process:294:12)
gyp ERR! System Linux 4.4.146+
gyp ERR! command “/data/data/com.termux/files/usr/bin/node” “/data/data/com.termux/files/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js” “configure” “–fallback-to-build” “–module=/data/data/com.termux/files/home/node-test/node_modules/bcrypt/lib/binding/napi-v3/bcrypt_lib.node” “–module_name=bcrypt_lib” “–module_path=/data/data/com.termux/files/home/node-test/node_modules/bcrypt/lib/binding/napi-v3” “–napi_version=9” “–node_abi_napi=napi” “–napi_build_version=3” “–node_napi_label=napi-v3”
gyp ERR! cwd /data/data/com.termux/files/home/node-test/node_modules/bcrypt
gyp ERR! node -v v20.11.1
gyp ERR! node-gyp -v v10.0.1
gyp ERR! not ok
node-pre-gyp ERR! build error emver: timing reifyNode:node_modules/@mapbox/node-pre-gyp Completed in 1297ms
node-pre-gyp ERR! stack Error: Failed to execute ‘/data/data/com.termux/files/usr/bin/node /data/data/com.termux/files/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js configure –fallback-to-build –module=/data/data/com.termux/files/home/node-test/node_modules/bcrypt/lib/binding/napi-v3/bcrypt_lib.node –module_name=bcrypt_lib –module_path=/data/data/com.termux/files/home/node-test/node_modules/bcrypt/lib/binding/napi-v3 –napi_version=9 –node_abi_napi=napi –napi_build_version=3 –node_napi_label=napi-v3’ (1)
node-pre-gyp ERR! stack at ChildProcess. (/data/data/com.termux/files/home/node-test/node_modules/@mapbox/node-pre-gyp/lib/util/compile.js:89:23)
node-pre-gyp ERR! stack at ChildProcess.emit (node:events:518:28)
node-pre-gyp ERR! stack at maybeClose (node:internal/child_process:1105:16)
node-pre-gyp ERR! stack at ChildProcess._handle.onexit (node:internal/child_process:305:5)
node-pre-gyp ERR! System Linux 4.4.146+
node-pre-gyp ERR! command “/data/data/com.termux/files/usr/bin/node” “/data/data/com.termux/files/home/node-test/node_modules/.bin/node-pre-gyp” “install” “–fallback-to-build”
node-pre-gyp ERR! cwd /data/data/com.termux/files/home/node-test/node_modules/bcrypt
node-pre-gyp ERR! node -v v20.11.1
node-pre-gyp ERR! node-pre-gyp -v v1.0.11
node-pre-gyp ERR! not ok
Failed to execute ‘/data/data/com.termux/files/usr/bin/node /data/data/com.termux/files/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js configure –fallback-to-build –module=/data/data/com.termux/files/home/node-test/node_modules/bcrypt/lib/binding/napi-v3/bcrypt_lib.node –module_name=bcrypt_lib –module_path=/data/data/com.termux/files/home/node-test/node_modules/bcrypt/lib/binding/napi-v3 –napi_version=9 –node_abi_napi=napi –napi_build_version=3 –node_napi_label=napi-v3’ (1)
npm ERR! code 1
npm ERR! path /data/data/com.termux/files/home/node-test/node_modules/bcrypt
npm ERR! command failed
npm ERR! command sh -c node-pre-gyp install –fallback-to-build
npm ERR! A complete log of this run can be found in: /data/data/com.termux/files/home/.npm/_logs/2024-02-27T13_43_53_215Z-debug-0.log`
I hope this command works and installs bcrypt!