Closed Nemi04 closed 2 years ago
I'm not sure how to fix but it appears to be a dependency issue, I would recommend using the docker file.
I used the docker file but it exited error 1
error /Discord-Screenshare/node_modules/bufferutil: Command failed. Exit code: 1 Command: node-gyp-build Arguments: Directory: /Discord-Screenshare/node_modules/bufferutil Output: gyp info it worked if it ends with ok gyp info using node-gyp@9.0.0 gyp info using node@17.9.0 | linux | arm64 gyp info find Python using Python version 3.8.10 found at "/usr/bin/python3" gyp http GET https://nodejs.org/download/release/v17.9.0/node-v17.9.0-headers.tar.gz gyp http 200 https://nodejs.org/download/release/v17.9.0/node-v17.9.0-headers.tar.gz gyp http GET https://nodejs.org/download/release/v17.9.0/SHASUMS256.txt gyp http 200 https://nodejs.org/download/release/v17.9.0/SHASUMS256.txt gyp info spawn /usr/bin/python3 gyp info spawn args [ 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 '/Discord-Screenshare/node_modules/bufferutil/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/.cache/node-gyp/17.9.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=/root/.cache/node-gyp/17.9.0', gyp info spawn args '-Dnode_gyp_dir=/usr/lib/node_modules/npm/node_modules/node-gyp', gyp info spawn args '-Dnode_lib_file=/root/.cache/node-gyp/17.9.0/<(target_arch)/node.lib', gyp info spawn args '-Dmodule_root_dir=/Discord-Screenshare/node_modules/bufferutil', 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 ERR! build error gyp ERR! stack Error: not found: make gyp ERR! stack at getNotFoundError (/usr/lib/node_modules/npm/node_modules/which/which.js:10:17) gyp ERR! stack at /usr/lib/node_modules/npm/node_modules/which/which.js:57:18 gyp ERR! stack at new Promise (
) gyp ERR! stack at step (/usr/lib/node_modules/npm/node_modules/which/which.js:54:21) gyp ERR! stack at /usr/lib/node_modules/npm/node_modules/which/which.js:71:22 gyp ERR! stack at new Promise ( ) gyp ERR! stack at subStep (/usr/lib/node_modules/npm/node_modules/which/which.js:69:33) gyp ERR! stack at /usr/lib/node_modules/npm/node_modules/which/which.js:80:22 gyp ERR! stack at /usr/lib/node_modules/npm/node_modules/isexe/index.js:42:5 gyp ERR! stack at /usr/lib/node_modules/npm/node_modules/isexe/mode.js:8:5 gyp ERR! System Linux 5.15.32-v8+ gyp ERR! command "/usr/bin/node" "/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild" gyp ERR! cwd /Discord-Screenshare/node_modules/bufferutil gyp ERR! node -v v17.9.0 gyp ERR! node-gyp -v v9.0.0 gyp ERR! not ok The command '/bin/sh -c yarn install' returned a non-zero code: 1
What OS have you built the container?
Raspberry Pi OS arm64
does docker works on windows ?
Raspberry Pi OS arm64
I don't believe it would work on ARM since many people tried using android and it failed.
oh..
does docker works on windows ?
You can check this 4da4cbe commit as it appears to be working on WSL.
and do I have the good version of nodejs ?
how to install chromedriver ? it may don't work on arm because Chrome is not compatible, but i do have chromium, it's simillar.
and do I have the good version of nodejs ?
I only tried on 17.9.0 you can use nodeenv.
Sorry, I misunderstood your last comment, You need to match the chromium version with the chrome driver.
Thanks ! (i will close that ticket if it works)
I have now a file named chromedriver(zip extracted), what can i do with it ?
I believe following the docker file commands would be useful.
/bin
The answer of that question is : No, ARM is not supported
When I try to run that script
node main.js
it crashes with that errorPlease help, what can I do to repair that ?