Hi ...
I am trying to install "Arduino -node-red-node-arduino"
A Node-RED node to talk to an Arduino running firmata
it is on a new PC whit Win-10
C:\Users\Node-Red>node -v
v18.12.1
C:\Users\Node-Red>npm -v
9.1.2
here is the error log:
2022-11-19T15:56:39.054Z Install : node-red-node-arduino 0.3.1
2022-11-19T15:56:39.391Z npm.cmd install --no-audit --no-update-notifier --no-fund --save --save-prefix=~ --production --engine-strict node-red-node-arduino@0.3.1
2022-11-19T15:56:40.555Z [err] npm
2022-11-19T15:56:40.555Z [err] WARN config
2022-11-19T15:56:40.555Z [err] production Use --omit=dev
instead.
2022-11-19T15:56:49.785Z [err] npm
2022-11-19T15:56:49.786Z [err] ERR! code 1
2022-11-19T15:56:49.786Z [err] npm ERR! path C:\Users\Node-Red.node-red\node_modules@serialport\bindings
2022-11-19T15:56:49.789Z [err] npm ERR!
2022-11-19T15:56:49.789Z [err] command failed
2022-11-19T15:56:49.789Z [err] npm ERR! command C:\Windows\system32\cmd.exe /d /s /c prebuild-install --tag-prefix @serialport/bindings@ || node-gyp rebuild
2022-11-19T15:56:49.789Z [err] npm ERR!
2022-11-19T15:56:49.789Z [err] gyp info it worked if it ends with ok
2022-11-19T15:56:49.789Z [err] npm ERR! gyp info using node-gyp@9.3.0
2022-11-19T15:56:49.789Z [err] npm ERR! gyp info using node@18.12.1 | win32 | x64
2022-11-19T15:56:49.789Z [err] npm ERR! gyp ERR! find Python
2022-11-19T15:56:49.789Z [err] npm
2022-11-19T15:56:49.789Z [err] ERR! gyp ERR! find Python Python is not set from command line or npm configuration
2022-11-19T15:56:49.789Z [err] npm ERR! gyp ERR! find Python Python is not set from environment variable PYTHON
2022-11-19T15:56:49.789Z [err] npm ERR! gyp ERR! find Python checking if "python3" can be used
2022-11-19T15:56:49.789Z [err] npm ERR! gyp ERR! find Python - "python3" is not in PATH or produced an error
2022-11-19T15:56:49.789Z [err] npm ERR!
2022-11-19T15:56:49.790Z [err] gyp ERR! find Python checking if "python" can be used
2022-11-19T15:56:49.790Z [err] npm ERR! gyp ERR! find Python - "python" is not in PATH or produced an error
2022-11-19T15:56:49.790Z [err] npm ERR! gyp ERR! find Python checking if Python is C:\Users\Node-Red\AppData\Local\Programs\Python\Python39\python.exe
2022-11-19T15:56:49.790Z [err] npm ERR! gyp ERR! find Python - "C:\Users\Node-Red\AppData\Local\Programs\Python\Python39\python.exe" could not be run
2022-11-19T15:56:49.790Z [err] npm
2022-11-19T15:56:49.790Z [err] ERR! gyp ERR! find Python checking if Python is C:\Program Files\Python39\python.exe
2022-11-19T15:56:49.790Z [err] npm ERR! gyp ERR! find Python - "C:\Program Files\Python39\python.exe" could not be run
2022-11-19T15:56:49.790Z [err] npm ERR!
2022-11-19T15:56:49.790Z [err] gyp ERR! find Python checking if Python is C:\Users\Node-Red\AppData\Local\Programs\Python\Python39-32\python.exe
2022-11-19T15:56:49.790Z [err] npm ERR! gyp ERR! find Python - "C:\Users\Node-Red\AppData\Local\Programs\Python\Python39-32\python.exe" could not be run
2022-11-19T15:56:49.790Z [err] npm
2022-11-19T15:56:49.790Z [err] ERR! gyp ERR! find Python checking if Python is C:\Program Files\Python39-32\python.exe
2022-11-19T15:56:49.790Z [err] npm ERR! gyp ERR! find Python - "C:\Program Files\Python39-32\python.exe" could not be run
2022-11-19T15:56:49.790Z [err] npm ERR! gyp ERR! find Python checking if Python is C:\Program Files (x86)\Python39-32\python.exe
2022-11-19T15:56:49.790Z [err] npm ERR! gyp ERR! find Python - "C:\Program Files (x86)\Python39-32\python.exe" could not be run
2022-11-19T15:56:49.790Z [err] npm ERR!
2022-11-19T15:56:49.790Z [err] gyp ERR! find Python checking if Python is C:\Users\Node-Red\AppData\Local\Programs\Python\Python38\python.exe
2022-11-19T15:56:49.790Z [err] npm ERR! gyp ERR! find Python - "C:\Users\Node-Red\AppData\Local\Programs\Python\Python38\python.exe" could not be run
2022-11-19T15:56:49.790Z [err] npm ERR!
2022-11-19T15:56:49.790Z [err] gyp ERR! find Python checking if Python is C:\Program Files\Python38\python.exe
2022-11-19T15:56:49.790Z [err] npm ERR! gyp ERR! find Python - "C:\Program Files\Python38\python.exe" could not be run
2022-11-19T15:56:49.790Z [err] npm ERR! gyp ERR! find Python checking if Python is C:\Users\Node-Red\AppData\Local\Programs\Python\Python38-32\python.exe
2022-11-19T15:56:49.790Z [err] npm ERR! gyp ERR! find Python - "C:\Users\Node-Red\AppData\Local\Programs\Python\Python38-32\python.exe" could not be run
2022-11-19T15:56:49.790Z [err] npm ERR! gyp ERR! find Python checking if Python is C:\Program Files\Python38-32\python.exe
2022-11-19T15:56:49.790Z [err] npm ERR! gyp ERR! find Python - "C:\Program Files\Python38-32\python.exe" could not be run
2022-11-19T15:56:49.790Z [err] npm ERR! gyp ERR! find Python checking if Python is C:\Program Files (x86)\Python38-32\python.exe
2022-11-19T15:56:49.790Z [err] npm ERR! gyp ERR! find Python - "C:\Program Files (x86)\Python38-32\python.exe" could not be run
2022-11-19T15:56:49.790Z [err] npm ERR! gyp ERR! find Python checking if Python is C:\Users\Node-Red\AppData\Local\Programs\Python\Python37\python.exe
2022-11-19T15:56:49.790Z [err] npm ERR! gyp ERR! find Python - "C:\Users\Node-Red\AppData\Local\Programs\Python\Python37\python.exe" could not be run
2022-11-19T15:56:49.790Z [err] npm ERR! gyp ERR! find Python checking if Python is C:\Program Files\Python37\python.exe
2022-11-19T15:56:49.790Z [err] npm
2022-11-19T15:56:49.790Z [err] ERR! gyp ERR! find Python - "C:\Program Files\Python37\python.exe" could not be run
2022-11-19T15:56:49.790Z [err] npm ERR! gyp ERR! find Python checking if Python is C:\Users\Node-Red\AppData\Local\Programs\Python\Python37-32\python.exe
2022-11-19T15:56:49.790Z [err] npm ERR! gyp ERR! find Python - "C:\Users\Node-Red\AppData\Local\Programs\Python\Python37-32\python.exe" could not be run
2022-11-19T15:56:49.790Z [err] npm ERR! gyp ERR! find Python checking if Python is C:\Program Files\Python37-32\python.exe
2022-11-19T15:56:49.790Z [err] npm ERR!
2022-11-19T15:56:49.790Z [err] gyp ERR! find Python - "C:\Program Files\Python37-32\python.exe" could not be run
2022-11-19T15:56:49.790Z [err] npm ERR!
2022-11-19T15:56:49.790Z [err] gyp ERR! find Python checking if Python is C:\Program Files (x86)\Python37-32\python.exe
2022-11-19T15:56:49.790Z [err] npm ERR! gyp ERR! find Python - "C:\Program Files (x86)\Python37-32\python.exe" could not be run
2022-11-19T15:56:49.790Z [err] npm
2022-11-19T15:56:49.790Z [err] ERR! gyp ERR! find Python checking if Python is C:\Users\Node-Red\AppData\Local\Programs\Python\Python36\python.exe
2022-11-19T15:56:49.790Z [err] npm ERR! gyp ERR! find Python - "C:\Users\Node-Red\AppData\Local\Programs\Python\Python36\python.exe" could not be run
2022-11-19T15:56:49.791Z [err] npm ERR! gyp ERR! find Python checking if Python is C:\Program Files\Python36\python.exe
2022-11-19T15:56:49.791Z [err] npm ERR! gyp ERR! find Python - "C:\Program Files\Python36\python.exe" could not be run
2022-11-19T15:56:49.791Z [err] npm ERR!
2022-11-19T15:56:49.791Z [err] gyp ERR! find Python checking if Python is C:\Users\Node-Red\AppData\Local\Programs\Python\Python36-32\python.exe
2022-11-19T15:56:49.791Z [err] npm ERR! gyp ERR! find Python - "C:\Users\Node-Red\AppData\Local\Programs\Python\Python36-32\python.exe" could not be run
2022-11-19T15:56:49.791Z [err] npm
2022-11-19T15:56:49.791Z [err] ERR! gyp ERR! find Python checking if Python is C:\Program Files\Python36-32\python.exe
2022-11-19T15:56:49.791Z [err] npm ERR!
2022-11-19T15:56:49.791Z [err] gyp ERR! find Python - "C:\Program Files\Python36-32\python.exe" could not be run
2022-11-19T15:56:49.791Z [err] npm ERR! gyp ERR! find Python checking if Python is C:\Program Files (x86)\Python36-32\python.exe
2022-11-19T15:56:49.791Z [err] npm
2022-11-19T15:56:49.791Z [err] ERR! gyp ERR! find Python - "C:\Program Files (x86)\Python36-32\python.exe" could not be run
2022-11-19T15:56:49.791Z [err] npm ERR! gyp ERR! find Python checking if the py launcher can be used to find Python 3
2022-11-19T15:56:49.791Z [err] npm ERR! gyp ERR! find Python - "py.exe" is not in PATH or produced an error
2022-11-19T15:56:49.791Z [err] npm
2022-11-19T15:56:49.791Z [err] ERR! gyp ERR! find Python
2022-11-19T15:56:49.791Z [err] npm ERR! gyp ERR! find Python **********************************************************
2022-11-19T15:56:49.791Z [err] npm ERR! gyp ERR! find Python You need to install the latest version of Python.
2022-11-19T15:56:49.791Z [err] npm ERR!
2022-11-19T15:56:49.791Z [err] gyp ERR! find Python Node-gyp should be able to find and use Python. If not,
2022-11-19T15:56:49.791Z [err] npm ERR! gyp ERR! find Python you can try one of the following options:
2022-11-19T15:56:49.791Z [err] npm
2022-11-19T15:56:49.791Z [err] ERR! gyp ERR! find Python - Use the switch --python="C:\Path\To\python.exe"
2022-11-19T15:56:49.791Z [err] npm ERR! gyp ERR! find Python (accepted by both node-gyp and npm)
2022-11-19T15:56:49.791Z [err] npm ERR! gyp ERR! find Python - Set the environment variable PYTHON
2022-11-19T15:56:49.791Z [err] npm ERR!
2022-11-19T15:56:49.791Z [err] gyp ERR! find Python - Set the npm configuration variable python:
2022-11-19T15:56:49.791Z [err] npm ERR! gyp ERR! find Python npm config set python "C:\Path\To\python.exe"
2022-11-19T15:56:49.791Z [err] npm
2022-11-19T15:56:49.791Z [err] ERR! gyp ERR! find Python For more information consult the documentation at:
2022-11-19T15:56:49.791Z [err] npm ERR! gyp ERR! find Python GitHub - nodejs/node-gyp: Node.js native addon build tool
2022-11-19T15:56:49.791Z [err] npm
2022-11-19T15:56:49.791Z [err] ERR! gyp ERR! find Python **********************************************************
2022-11-19T15:56:49.791Z [err] npm
2022-11-19T15:56:49.791Z [err] ERR! gyp ERR! find Python
2022-11-19T15:56:49.791Z [err] npm ERR! gyp ERR! configure error
2022-11-19T15:56:49.791Z [err] npm ERR! gyp ERR! stack Error: Could not find any Python installation to use
2022-11-19T15:56:49.791Z [err] npm ERR!
2022-11-19T15:56:49.791Z [err] gyp ERR! stack at PythonFinder.fail (C:\Users\Node-Red\AppData\Roaming\npm\node_modules\npm\node_modules\node-gyp\lib\find-python.js:330:47)
2022-11-19T15:56:49.791Z [err] npm ERR! gyp ERR! stack at PythonFinder.runChecks (C:\Users\Node-Red\AppData\Roaming\npm\node_modules\npm\node_modules\node-gyp\lib\find-python.js:159:21)
2022-11-19T15:56:49.791Z [err] npm ERR! gyp ERR! stack at PythonFinder. (C:\Users\Node-Red\AppData\Roaming\npm\node_modules\npm\node_modules\node-gyp\lib\find-python.js:228:18)
2022-11-19T15:56:49.791Z [err] npm
2022-11-19T15:56:49.791Z [err] ERR! gyp ERR! stack at PythonFinder.execFileCallback (C:\Users\Node-Red\AppData\Roaming\npm\node_modules\npm\node_modules\node-gyp\lib\find-python.js:294:16)
2022-11-19T15:56:49.791Z [err] npm ERR! gyp ERR! stack at exithandler (node:child_process:420:5)
2022-11-19T15:56:49.791Z [err] npm ERR! gyp ERR! stack at ChildProcess.errorhandler (node:child_process:432:5)
2022-11-19T15:56:49.791Z [err] npm ERR!
2022-11-19T15:56:49.791Z [err] gyp ERR! stack at ChildProcess.emit (node:events:513:28)
2022-11-19T15:56:49.791Z [err] npm ERR! gyp ERR! stack at ChildProcess._handle.onexit (node:internal/child_process:289:12)
2022-11-19T15:56:49.791Z [err] npm ERR!
2022-11-19T15:56:49.792Z [err] gyp ERR! stack at onErrorNT (node:internal/child_process:476:16)
2022-11-19T15:56:49.792Z [err] npm ERR! gyp ERR! stack at process.processTicksAndRejections (node:internal/process/task_queues:82:21)
2022-11-19T15:56:49.792Z [err] npm ERR!
2022-11-19T15:56:49.792Z [err] gyp ERR! System Windows_NT 10.0.14393
2022-11-19T15:56:49.792Z [err] npm
2022-11-19T15:56:49.792Z [err]
2022-11-19T15:56:49.792Z [err] ERR!
2022-11-19T15:56:49.792Z [err] gyp ERR! command "C:\Program Files\nodejs\node.exe" "C:\Users\Node-Red\AppData\Roaming\npm\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js" "rebuild"
2022-11-19T15:56:49.792Z [err] npm
2022-11-19T15:56:49.792Z [err]
2022-11-19T15:56:49.792Z [err] ERR!
2022-11-19T15:56:49.792Z [err] gyp ERR! cwd C:\Users\Node-Red.node-red\node_modules@serialport\bindings
2022-11-19T15:56:49.792Z [err] npm
2022-11-19T15:56:49.793Z [err]
2022-11-19T15:56:49.793Z [err] ERR!
2022-11-19T15:56:49.793Z [err] gyp ERR! node -v v18.12.1
2022-11-19T15:56:49.793Z [err] npm
2022-11-19T15:56:49.793Z [err]
2022-11-19T15:56:49.793Z [err] ERR!
2022-11-19T15:56:49.793Z [err] gyp ERR! node-gyp -v v9.3.0
2022-11-19T15:56:49.793Z [err] npm
2022-11-19T15:56:49.793Z [err]
2022-11-19T15:56:49.793Z [err] ERR! gyp ERR! not ok
2022-11-19T15:56:49.796Z [err]
2022-11-19T15:56:49.796Z [err] npm ERR! A complete log of this run can be found in:
2022-11-19T15:56:49.796Z [err] npm ERR! C:\Users\Node-Red\AppData\Local\npm-cache_logs\2022-11-19T15_56_40_530Z-debug-0.log
2022-11-19T15:56:49.819Z rc=1