-
Notifications
You must be signed in to change notification settings - Fork 4
Open

Description
https://github.com/kelektiv/node.bcrypt.js
gyp: Undefined variable module_name in binding.gyp while trying to load binding.gyp
This is probably due to node-pre-gyp
It builds successfully outside of prebuild-for-nodejs-mobile
ANDROID_NDK_HOME=/home/user/opt/android/ndk/ npx prebuild-for-nodejs-mobile android-arm64 --sdk22
Exited with code 1
gyp info it worked if it ends with ok
gyp info using [email protected]
gyp info using [email protected] | linux | x64
(node:225175) [DEP0150] DeprecationWarning: Setting process.config is deprecated. In the future the property will be read-only.
(Use `node --trace-deprecation ...` to show where the warning was created)
gyp info spawn /usr/bin/python2
gyp info spawn args [
gyp info spawn args '/home/user/.cache/npm-cache/_npx/ef19bf872be79af2/node_modules/nodejs-mobile-gyp/gyp/gyp_main.py',
gyp info spawn args 'binding.gyp',
gyp info spawn args '-f',
gyp info spawn args 'make-android',
gyp info spawn args '-I',
gyp info spawn args '/home/user/workspaces/aproject/src/node.bcrypt.js/build/config.gypi',
gyp info spawn args '-I',
gyp info spawn args '/home/user/.cache/npm-cache/_npx/ef19bf872be79af2/node_modules/nodejs-mobile-gyp/addon.gypi',
gyp info spawn args '-I',
gyp info spawn args '/home/user/.cache/npm-cache/_npx/ef19bf872be79af2/node_modules/nodejs-mobile-react-native/android/libnode/include/node/common.gypi',
gyp info spawn args '-Dlibrary=shared_library',
gyp info spawn args '-Dvisibility=default',
gyp info spawn args '-Dnode_root_dir=/home/user/.cache/npm-cache/_npx/ef19bf872be79af2/node_modules/nodejs-mobile-react-native/android/libnode',
gyp info spawn args '-Dnode_gyp_dir=/home/user/.cache/npm-cache/_npx/ef19bf872be79af2/node_modules/nodejs-mobile-gyp',
gyp info spawn args '-Dnode_lib_file=/home/user/.cache/npm-cache/_npx/ef19bf872be79af2/node_modules/nodejs-mobile-react-native/android/libnode/$(Configuration)/node.lib',
gyp info spawn args '-Dmodule_root_dir=/home/user/workspaces/aproject/src/node.bcrypt.js',
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 module_name in binding.gyp while trying to load binding.gyp
gyp ERR! configure error
gyp ERR! stack Error: `gyp` failed with exit code: 1
gyp ERR! stack at ChildProcess.onCpExit (/home/user/.cache/npm-cache/_npx/ef19bf872be79af2/node_modules/nodejs-mobile-gyp/lib/configure.js:334:16)
gyp ERR! stack at ChildProcess.emit (node:events:513:28)
gyp ERR! stack at Process.ChildProcess._handle.onexit (node:internal/child_process:291:12)
gyp ERR! System Linux 6.2.11-300.fc38.x86_64
gyp ERR! command "/home/user/.local/share/volta/tools/image/node/16.17.0/bin/node" "/home/user/.cache/npm-cache/_npx/ef19bf872be79af2/node_modules/nodejs-mobile-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /home/user/workspaces/aproject/src/node.bcrypt.js
gyp ERR! node -v v16.17.0
gyp ERR! node-gyp -v v0.3.1
gyp ERR! not ok
Metadata
Metadata
Assignees
Labels
No labels