Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

there is something with raspberry pi 4b+ arm64 #258

Open
introspection3 opened this issue Sep 23, 2023 · 4 comments
Open

there is something with raspberry pi 4b+ arm64 #258

introspection3 opened this issue Sep 23, 2023 · 4 comments

Comments

@introspection3
Copy link

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

@cclauss
Copy link

cclauss commented Sep 23, 2023

Perhaps install https://github.com/nodejs/nan and upgrade to the current node-gyp.

@introspection3
Copy link
Author

image

@introspection3
Copy link
Author

when I npm install nan (or --save)
image

@cclauss
Copy link

cclauss commented Sep 29, 2023

Pasting in code with three backticks is a much better way to go than pasting images. https://docs.github.com/en/get-started/writing-on-github/working-with-advanced-formatting/creating-and-highlighting-code-blocks Smaller, faster, and searchable.

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants