You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
pi@raspberrypi:~/Downloads/node-ffi-master $ node-gyp rebuild
gyp info it worked if it ends with ok
gyp info using node-gyp@8.2.0
gyp info using node@18.18.0 | linux | arm64
gyp info find Python using Python version 3.7.3 found at "/usr/bin/python3"
gyp http GET https://nodejs.org/download/release/v18.18.0/node-v18.18.0-headers.tar.gz
gyp http 200 https://nodejs.org/download/release/v18.18.0/node-v18.18.0-headers.tar.gz
gyp http GET https://nodejs.org/download/release/v18.18.0/SHASUMS256.txt
gyp http 200 https://nodejs.org/download/release/v18.18.0/SHASUMS256.txt
gyp info spawn /usr/bin/python3
gyp info spawn args [
gyp info spawn args '/usr/lib/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 '/home/pi/Downloads/node-ffi-master/build/config.gypi',
gyp info spawn args '-I',
gyp info spawn args '/usr/lib/node_modules/node-gyp/addon.gypi',
gyp info spawn args '-I',
gyp info spawn args '/home/pi/.cache/node-gyp/18.18.0/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/pi/.cache/node-gyp/18.18.0',
gyp info spawn args '-Dnode_gyp_dir=/usr/lib/node_modules/node-gyp',
gyp info spawn args '-Dnode_lib_file=/home/pi/.cache/node-gyp/18.18.0/<(target_arch)/node.lib',
gyp info spawn args '-Dmodule_root_dir=/home/pi/Downloads/node-ffi-master',
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 ]
node:internal/modules/cjs/loader:1080
throw err;
^
Error: Cannot find module 'nan'
Require stack:
/home/pi/Downloads/node-ffi-master/[eval]
at Module._resolveFilename (node:internal/modules/cjs/loader:1077:15)
at Module._load (node:internal/modules/cjs/loader:922:27)
at Module.require (node:internal/modules/cjs/loader:1143:19)
at require (node:internal/modules/cjs/helpers:119:18)
at [eval]:1:1
at Script.runInThisContext (node:vm:123:12)
at Object.runInThisContext (node:vm:299:38)
at node:internal/process/execution:82:21
at [eval]-wrapper:6:24
at runScript (node:internal/process/execution:81:62) {
code: 'MODULE_NOT_FOUND',
requireStack: [ '/home/pi/Downloads/node-ffi-master/[eval]' ]
}
Node.js v18.18.0
gyp: Call to 'node -e "require('nan')"' returned exit status 1 while 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 (/usr/lib/node_modules/node-gyp/lib/configure.js:353:16)
gyp ERR! stack at ChildProcess.emit (node:events:517:28)
gyp ERR! stack at ChildProcess._handle.onexit (node:internal/child_process:292:12)
gyp ERR! System Linux 5.10.103-v8+
gyp ERR! command "/home/pi/.nvm/versions/node/v18.18.0/bin/node" "/usr/bin/node-gyp" "rebuild"
gyp ERR! cwd /home/pi/Downloads/node-ffi-master
gyp ERR! node -v v18.18.0
gyp ERR! node-gyp -v v8.2.0
gyp ERR! not ok
The text was updated successfully, but these errors were encountered:
Those mostly look like warnings, not errors. Is nan usable at the end of it all or are there errors? The build process seems quite noisy but it builds on ALL versions of Node.js.
The local Python version is no longer supported but I doubt that is a problem.
pi@raspberrypi:~/Downloads/node-ffi-master $ node-gyp rebuild
gyp info it worked if it ends with ok
gyp info using node-gyp@8.2.0
gyp info using node@18.18.0 | linux | arm64
gyp info find Python using Python version 3.7.3 found at "/usr/bin/python3"
gyp http GET https://nodejs.org/download/release/v18.18.0/node-v18.18.0-headers.tar.gz
gyp http 200 https://nodejs.org/download/release/v18.18.0/node-v18.18.0-headers.tar.gz
gyp http GET https://nodejs.org/download/release/v18.18.0/SHASUMS256.txt
gyp http 200 https://nodejs.org/download/release/v18.18.0/SHASUMS256.txt
gyp info spawn /usr/bin/python3
gyp info spawn args [
gyp info spawn args '/usr/lib/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 '/home/pi/Downloads/node-ffi-master/build/config.gypi',
gyp info spawn args '-I',
gyp info spawn args '/usr/lib/node_modules/node-gyp/addon.gypi',
gyp info spawn args '-I',
gyp info spawn args '/home/pi/.cache/node-gyp/18.18.0/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/pi/.cache/node-gyp/18.18.0',
gyp info spawn args '-Dnode_gyp_dir=/usr/lib/node_modules/node-gyp',
gyp info spawn args '-Dnode_lib_file=/home/pi/.cache/node-gyp/18.18.0/<(target_arch)/node.lib',
gyp info spawn args '-Dmodule_root_dir=/home/pi/Downloads/node-ffi-master',
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 ]
node:internal/modules/cjs/loader:1080
throw err;
^
Error: Cannot find module 'nan'
Require stack:
at Module._resolveFilename (node:internal/modules/cjs/loader:1077:15)
at Module._load (node:internal/modules/cjs/loader:922:27)
at Module.require (node:internal/modules/cjs/loader:1143:19)
at require (node:internal/modules/cjs/helpers:119:18)
at [eval]:1:1
at Script.runInThisContext (node:vm:123:12)
at Object.runInThisContext (node:vm:299:38)
at node:internal/process/execution:82:21
at [eval]-wrapper:6:24
at runScript (node:internal/process/execution:81:62) {
code: 'MODULE_NOT_FOUND',
requireStack: [ '/home/pi/Downloads/node-ffi-master/[eval]' ]
}
Node.js v18.18.0
gyp: Call to 'node -e "require('nan')"' returned exit status 1 while in binding.gyp. while trying to load binding.gyp
gyp ERR! configure error
gyp ERR! stack Error:
gyp
failed with exit code: 1gyp ERR! stack at ChildProcess.onCpExit (/usr/lib/node_modules/node-gyp/lib/configure.js:353:16)
gyp ERR! stack at ChildProcess.emit (node:events:517:28)
gyp ERR! stack at ChildProcess._handle.onexit (node:internal/child_process:292:12)
gyp ERR! System Linux 5.10.103-v8+
gyp ERR! command "/home/pi/.nvm/versions/node/v18.18.0/bin/node" "/usr/bin/node-gyp" "rebuild"
gyp ERR! cwd /home/pi/Downloads/node-ffi-master
gyp ERR! node -v v18.18.0
gyp ERR! node-gyp -v v8.2.0
gyp ERR! not ok
The text was updated successfully, but these errors were encountered: