Neurotechnology-Exploration-Team / OpenBciWebGui

0 stars 0 forks source link

Rebuild still failing, this time for Robotjs #6

Open MJE10 opened 2 years ago

MJE10 commented 2 years ago

Rebuilding fails (the project can still be run, and new packages installed individually, just don't touch npm rebuild or npm install). Some online sources (https://github.com/octalmage/robotjs/issues/398) suggest that installing globally could fix the issue, but that would have to be done on a per-computer basis.


Windows PowerShell Copyright (C) Microsoft Corporation. All rights reserved.

Try the new cross-platform PowerShell https://aka.ms/pscore6

PS C:\Users\micha\WebstormProjects\OpenBciWebGui> npm rebuild

serialport@6.2.2 install C:\Users\micha\WebstormProjects\OpenBciWebGui\node_modules\serialport prebuild-install || node-gyp rebuild

robotjs@0.6.0 install C:\Users\micha\WebstormProjects\OpenBciWebGui\node_modules\robotjs prebuild-install || node-gyp rebuild

prebuild-install WARN install No prebuilt binaries found (target=9.11.2 runtime=node arch=x64 libc= platform=win32)

C:\Users\micha\WebstormProjects\OpenBciWebGui\node_modules\robotjs>if not defined npm_config_node_gyp (node "C:\Users\micha\AppData\Roaming\nvm\v9.11.2\node_modules\npm\node_modules\npm-lifecycle\node-gyp-bin\ ....\node_modules\node-gyp\bin\node-gyp.js" rebuild ) else (node "C:\Users\micha\AppData\Roaming\nvm\v9.11.2\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js" rebuild ) gyp ERR! UNCAUGHT EXCEPTION gyp ERR! stack Error: spawn C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\15.0\Bin\MSBuild.exe ENOENT gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:201:19) gyp ERR! stack at onErrorNT (internal/child_process.js:379:16) gyp ERR! stack at process._tickCallback (internal/process/next_tick.js:178:19) gyp ERR! System Windows_NT 10.0.19043 gyp ERR! command "C:\Program Files\nodejs\node.exe" "C:\Users\micha\AppData\Roaming\nvm\v9.11.2\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js" "rebuild" gyp ERR! cwd C:\Users\micha\WebstormProjects\OpenBciWebGui\node_modules\robotjs gyp ERR! node -v v9.11.2 gyp ERR! node-gyp -v v3.6.2 gyp ERR! This is a bug in node-gyp. gyp ERR! Try to update node-gyp and file an Issue if it does not help: npm ERR! code ELIFECYCLE npm ERR! errno 7 npm ERR! robotjs@0.6.0 install: prebuild-install || node-gyp rebuild npm ERR! Exit status 7 npm ERR! npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in: npm ERR! C:\Users\micha\AppData\Roaming\npm-cache_logs\2022-01-14T15_13_08_144Z-debug.log PS C:\Users\micha\WebstormProjects\OpenBciWebGui> npm install npm WARN ws@8.4.0 requires a peer of utf-8-validate@^5.0.2 but none is installed. You must install peer dependencies yourself. npm WARN open_bci_web_gui@1.0.0 No repository field.

up to date in 0.899s PS C:\Users\micha\WebstormProjects\OpenBciWebGui> npm uninstall robotjs npm WARN ws@8.4.0 requires a peer of bufferutil@^4.0.1 but none is installed. You must install peer dependencies yourself. npm WARN ws@8.4.0 requires a peer of utf-8-validate@^5.0.2 but none is installed. You must install peer dependencies yourself. npm WARN open_bci_web_gui@1.0.0 No repository field.

removed 14 packages in 0.932s PS C:\Users\micha\WebstormProjects\OpenBciWebGui> npm install robotjs

robotjs@0.6.0 install C:\Users\micha\WebstormProjects\OpenBciWebGui\node_modules\robotjs prebuild-install || node-gyp rebuild

prebuild-install WARN install No prebuilt binaries found (target=9.11.2 runtime=node arch=x64 libc= platform=win32)

C:\Users\micha\WebstormProjects\OpenBciWebGui\node_modules\robotjs>if not defined npm_config_node_gyp (node "C:\Users\micha\AppData\Roaming\nvm\v9.11.2\node_modules\npm\node_modules\npm-lifecycle\node-gyp-bin\ ....\node_modules\node-gyp\bin\node-gyp.js" rebuild ) else (node "C:\Users\micha\AppData\Roaming\nvm\v9.11.2\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js" rebuild ) gyp ERR! UNCAUGHT EXCEPTION gyp ERR! stack Error: spawn C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\15.0\Bin\MSBuild.exe ENOENT gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:201:19) gyp ERR! stack at onErrorNT (internal/child_process.js:379:16) gyp ERR! stack at process._tickCallback (internal/process/next_tick.js:178:19) gyp ERR! System Windows_NT 10.0.19043 gyp ERR! command "C:\Program Files\nodejs\node.exe" "C:\Users\micha\AppData\Roaming\nvm\v9.11.2\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js" "rebuild" gyp ERR! cwd C:\Users\micha\WebstormProjects\OpenBciWebGui\node_modules\robotjs gyp ERR! node -v v9.11.2 gyp ERR! node-gyp -v v3.6.2 gyp ERR! This is a bug in node-gyp. gyp ERR! Try to update node-gyp and file an Issue if it does not help: gyp ERR! https://github.com/nodejs/node-gyp/issues npm WARN ws@8.4.0 requires a peer of bufferutil@^4.0.1 but none is installed. You must install peer dependencies yourself. npm WARN ws@8.4.0 requires a peer of utf-8-validate@^5.0.2 but none is installed. You must install peer dependencies yourself. npm WARN open_bci_web_gui@1.0.0 No repository field. npm ERR! code ELIFECYCLE npm ERR! errno 7 npm ERR! robotjs@0.6.0 install: prebuild-install || node-gyp rebuild npm ERR! Exit status 7 npm ERR! npm ERR! Failed at the robotjs@0.6.0 install script. npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in: npm ERR! C:\Users\micha\AppData\Roaming\npm-cache_logs\2022-01-14T15_14_17_163Z-debug.log PS C:\Users\micha\WebstormProjects\OpenBciWebGui> npm install @openbci/ganglion npm WARN deprecated node-pre-gyp@0.10.3: Please upgrade to @mapbox/node-pre-gyp: the non-scoped node-pre-gyp package is deprecated and only the @mapbox scoped package will recieve updates in the future npm WARN notice [SECURITY] debug has the following vulnerability: 1 low. Go here for more details: https://www.npmjs.com/advisories?search=debug&version=2.2.0 - Run npm i npm@latest -g to upgrade your npm ve rsion, and then npm audit to get more info.

@serialport/bindings@2.0.8 install C:\Users\micha\WebstormProjects\OpenBciWebGui\node_modules\@serialport\bindings prebuild-install --tag-prefix @serialport/bindings@ || node-gyp rebuild

usb@1.9.2 install C:\Users\micha\WebstormProjects\OpenBciWebGui\node_modules\usb node-gyp-build

C:\Users\micha\WebstormProjects\OpenBciWebGui\node_modules\usb>if not defined npm_config_node_gyp (node "C:\Users\micha\AppData\Roaming\nvm\v9.11.2\node_modules\npm\node_modules\npm-lifecycle\node-gyp-bin\..\ ..\node_modules\node-gyp\bin\node-gyp.js" rebuild ) else (node "C:\Users\micha\AppData\Roaming\nvm\v9.11.2\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js" rebuild ) gyp: Undefined variable napi_build_version 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 (C:\Users\micha\AppData\Roaming\nvm\v9.11.2\node_modules\npm\node_modules\node-gyp\lib\configure.js:336:16) gyp ERR! stack at ChildProcess.emit (events.js:180:13) gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:209:12) gyp ERR! System Windows_NT 10.0.19043 gyp ERR! command "C:\Program Files\nodejs\node.exe" "C:\Users\micha\AppData\Roaming\nvm\v9.11.2\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js" "rebuild" gyp ERR! cwd C:\Users\micha\WebstormProjects\OpenBciWebGui\node_modules\usb gyp ERR! node -v v9.11.2 gyp ERR! node-gyp -v v3.6.2 gyp ERR! not ok

bluetooth-hci-socket@0.5.1 install C:\Users\micha\WebstormProjects\OpenBciWebGui\node_modules\bluetooth-hci-socket node-gyp rebuild

C:\Users\micha\WebstormProjects\OpenBciWebGui\node_modules\bluetooth-hci-socket>if not defined npm_config_node_gyp (node "C:\Users\micha\AppData\Roaming\nvm\v9.11.2\node_modules\npm\node_modules\npm-lifecycle\ node-gyp-bin\....\node_modules\node-gyp\bin\node-gyp.js" rebuild ) else (node "C:\Users\micha\AppData\Roaming\nvm\v9.11.2\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js" rebuild ) gyp ERR! UNCAUGHT EXCEPTION gyp ERR! stack Error: spawn C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\15.0\Bin\MSBuild.exe ENOENT gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:201:19) gyp ERR! stack at onErrorNT (internal/child_process.js:379:16) gyp ERR! stack at process._tickCallback (internal/process/next_tick.js:178:19) gyp ERR! System Windows_NT 10.0.19043 gyp ERR! command "C:\Program Files\nodejs\node.exe" "C:\Users\micha\AppData\Roaming\nvm\v9.11.2\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js" "rebuild" gyp ERR! cwd C:\Users\micha\WebstormProjects\OpenBciWebGui\node_modules\bluetooth-hci-socket gyp ERR! node -v v9.11.2 gyp ERR! node-gyp -v v3.6.2 gyp ERR! This is a bug in node-gyp. gyp ERR! Try to update node-gyp and file an Issue if it does not help: gyp ERR! https://github.com/nodejs/node-gyp/issues

noble-mac@0.0.4 install C:\Users\micha\WebstormProjects\OpenBciWebGui\node_modules\noble-mac node install.js

npm WARN optional SKIPPING OPTIONAL DEPENDENCY: xpc-connection@~0.1.4 (node_modules\noble\node_modules\xpc-connection): npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for xpc-connection@0.1.4: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"}) npm WARN ws@8.4.0 requires a peer of bufferutil@^4.0.1 but none is installed. You must install peer dependencies yourself. npm WARN open_bci_web_gui@1.0.0 No repository field. npm WARN optional SKIPPING OPTIONAL DEPENDENCY: usb@1.9.2 (node_modules\usb): npm WARN optional SKIPPING OPTIONAL DEPENDENCY: usb@1.9.2 install: node-gyp-build npm WARN optional SKIPPING OPTIONAL DEPENDENCY: Exit status 1 npm WARN optional SKIPPING OPTIONAL DEPENDENCY: bluetooth-hci-socket@0.5.1 (node_modules\bluetooth-hci-socket): npm WARN optional SKIPPING OPTIONAL DEPENDENCY: bluetooth-hci-socket@0.5.1 install: node-gyp rebuild npm WARN optional SKIPPING OPTIONAL DEPENDENCY: Exit status 7

serialport@6.2.2 install C:\Users\micha\WebstormProjects\OpenBciWebGui\node_modules\serialport prebuild-install || node-gyp rebuild

noble-mac@0.0.4 install C:\Users\micha\WebstormProjects\OpenBciWebGui\node_modules\noble-mac node install.js

@serialport/bindings@2.0.8 install C:\Users\micha\WebstormProjects\OpenBciWebGui\node_modules\@serialport\bindings prebuild-install --tag-prefix @serialport/bindings@ || node-gyp rebuild

robotjs@0.6.0 install C:\Users\micha\WebstormProjects\OpenBciWebGui\node_modules\robotjs prebuild-install || node-gyp rebuild

prebuild-install WARN install No prebuilt binaries found (target=9.11.2 runtime=node arch=x64 libc= platform=win32)

C:\Users\micha\WebstormProjects\OpenBciWebGui\node_modules\robotjs>if not defined npm_config_node_gyp (node "C:\Users\micha\AppData\Roaming\nvm\v9.11.2\node_modules\npm\node_modules\npm-lifecycle\node-gyp-bin\ ....\node_modules\node-gyp\bin\node-gyp.js" rebuild ) else (node "C:\Users\micha\AppData\Roaming\nvm\v9.11.2\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js" rebuild ) gyp ERR! UNCAUGHT EXCEPTION gyp ERR! stack Error: spawn C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\15.0\Bin\MSBuild.exe ENOENT gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:201:19) gyp ERR! stack at onErrorNT (internal/child_process.js:379:16) gyp ERR! stack at process._tickCallback (internal/process/next_tick.js:178:19) gyp ERR! System Windows_NT 10.0.19043 gyp ERR! command "C:\Program Files\nodejs\node.exe" "C:\Users\micha\AppData\Roaming\nvm\v9.11.2\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js" "rebuild" gyp ERR! cwd C:\Users\micha\WebstormProjects\OpenBciWebGui\node_modules\robotjs gyp ERR! node -v v9.11.2 gyp ERR! node-gyp -v v3.6.2 gyp ERR! This is a bug in node-gyp. gyp ERR! Try to update node-gyp and file an Issue if it does not help: PS C:\Users\micha\WebstormProjects\OpenBciWebGui> npm rebuild

serialport@6.2.2 install C:\Users\micha\WebstormProjects\OpenBciWebGui\node_modules\serialport prebuild-install || node-gyp rebuild

noble-mac@0.0.4 install C:\Users\micha\WebstormProjects\OpenBciWebGui\node_modules\noble-mac node install.js

@serialport/bindings@2.0.8 install C:\Users\micha\WebstormProjects\OpenBciWebGui\node_modules\@serialport\bindings prebuild-install --tag-prefix @serialport/bindings@ || node-gyp rebuild

robotjs@0.6.0 install C:\Users\micha\WebstormProjects\OpenBciWebGui\node_modules\robotjs prebuild-install || node-gyp rebuild

prebuild-install WARN install No prebuilt binaries found (target=9.11.2 runtime=node arch=x64 libc= platform=win32)

C:\Users\micha\WebstormProjects\OpenBciWebGui\node_modules\robotjs>if not defined npm_config_node_gyp (node "C:\Users\micha\AppData\Roaming\nvm\v9.11.2\node_modules\npm\node_modules\npm-lifecycle\node-gyp-bin\ ....\node_modules\node-gyp\bin\node-gyp.js" rebuild ) else (node "C:\Users\micha\AppData\Roaming\nvm\v9.11.2\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js" rebuild ) gyp ERR! UNCAUGHT EXCEPTION gyp ERR! stack Error: spawn C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\15.0\Bin\MSBuild.exe ENOENT gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:201:19) gyp ERR! stack at onErrorNT (internal/child_process.js:379:16) gyp ERR! stack at process._tickCallback (internal/process/next_tick.js:178:19) gyp ERR! System Windows_NT 10.0.19043 gyp ERR! command "C:\Program Files\nodejs\node.exe" "C:\Users\micha\AppData\Roaming\nvm\v9.11.2\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js" "rebuild" gyp ERR! cwd C:\Users\micha\WebstormProjects\OpenBciWebGui\node_modules\robotjs gyp ERR! node -v v9.11.2 gyp ERR! node-gyp -v v3.6.2 gyp ERR! This is a bug in node-gyp. gyp ERR! Try to update node-gyp and file an Issue if it does not help: gyp ERR! https://github.com/nodejs/node-gyp/issues npm ERR! code ELIFECYCLE npm ERR! errno 7 npm ERR! robotjs@0.6.0 install: prebuild-install || node-gyp rebuild npm ERR! Exit status 7 npm ERR! npm ERR! Failed at the robotjs@0.6.0 install script. npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in: npm ERR! C:\Users\micha\AppData\Roaming\npm-cache_logs\2022-01-14T15_53_47_295Z-debug.log PS C:\Users\micha\WebstormProjects\OpenBciWebGui>

MJE10 commented 2 years ago

The weirdest part is that robotjs has never caused a problem until today... not sure what has changed

MJE10 commented 2 years ago

This might be resolved by messing with the version requirement in package.json, as that was the solution for #8

MJE10 commented 2 years ago

Remember that upgrading node, npm, or node-gyp is not really an option as that makes the @openbci modules (like Cyton and Wifi) fail