Failed to install: node-red-node-arduino

This is the error log I am receiving, can anyone help?

2022-03-11T15:17:50.130Z Install : node-red-node-arduino 0.3.1

2022-03-11T15:17:50.492Z npm.cmd install --no-audit --no-update-notifier --no-fund --save --save-prefix=~ --production --engine-strict node-red-node-arduino@0.3.1
2022-03-11T15:18:02.862Z [err] npm
2022-03-11T15:18:02.862Z [err]  ERR! code 1
2022-03-11T15:18:02.862Z [err] npm ERR! path C:\Users\Ethan\.node-red\node_modules\@serialport\bindings
2022-03-11T15:18:02.865Z [err] npm ERR! command failed
2022-03-11T15:18:02.866Z [err] npm ERR! command C:\WINDOWS\system32\cmd.exe /d /s /c prebuild-install --tag-prefix @serialport/bindings@ || node-gyp rebuild
2022-03-11T15:18:02.866Z [err] npm ERR! gyp info it worked if it ends with ok
2022-03-11T15:18:02.866Z [err] npm ERR! gyp info using node-gyp@8.4.1
2022-03-11T15:18:02.866Z [err] npm ERR! gyp info using node@17.7.1 | win32 | x64
2022-03-11T15:18:02.866Z [err] npm ERR! gyp ERR! find Python 
2022-03-11T15:18:02.866Z [err] npm ERR! gyp ERR! find Python Python is not set from command line or npm configuration
2022-03-11T15:18:02.866Z [err] npm ERR! gyp ERR! find Python Python is not set from environment variable PYTHON
2022-03-11T15:18:02.866Z [err] npm ERR! gyp ERR! find Python checking if "python3" can be used
2022-03-11T15:18:02.866Z [err] npm ERR! gyp ERR! find Python - "python3" is not in PATH or produced an error
2022-03-11T15:18:02.866Z [err] npm 
2022-03-11T15:18:02.866Z [err] ERR! gyp ERR! find Python checking if "python" can be used
2022-03-11T15:18:02.866Z [err] npm ERR! gyp ERR! find Python - "python" is not in PATH or produced an error
2022-03-11T15:18:02.866Z [err] npm ERR! gyp ERR! find Python checking if Python is C:\Users\Ethan\AppData\Local\Programs\Python\Python39\python.exe
2022-03-11T15:18:02.866Z [err] npm ERR! gyp ERR! find Python - "C:\Users\Ethan\AppData\Local\Programs\Python\Python39\python.exe" could not be run
2022-03-11T15:18:02.866Z [err] npm ERR! gyp ERR! find Python checking if Python is C:\Program Files\Python39\python.exe
2022-03-11T15:18:02.866Z [err] npm
2022-03-11T15:18:02.866Z [err]  ERR! gyp ERR! find Python - "C:\Program Files\Python39\python.exe" could not be run
2022-03-11T15:18:02.866Z [err] npm ERR! gyp ERR! find Python checking if Python is C:\Users\Ethan\AppData\Local\Programs\Python\Python39-32\python.exe
2022-03-11T15:18:02.866Z [err] npm ERR! gyp ERR! find Python - "C:\Users\Ethan\AppData\Local\Programs\Python\Python39-32\python.exe" could not be run
2022-03-11T15:18:02.866Z [err] npm ERR! gyp ERR! find Python checking if Python is C:\Program Files\Python39-32\python.exe
2022-03-11T15:18:02.866Z [err] npm 
2022-03-11T15:18:02.866Z [err] ERR! gyp ERR! find Python - "C:\Program Files\Python39-32\python.exe" could not be run
2022-03-11T15:18:02.866Z [err] npm ERR! gyp ERR! find Python checking if Python is C:\Program Files (x86)\Python39-32\python.exe
2022-03-11T15:18:02.866Z [err] npm ERR! gyp ERR! find Python - "C:\Program Files (x86)\Python39-32\python.exe" could not be run
2022-03-11T15:18:02.866Z [err] npm ERR! gyp ERR! find Python checking if Python is C:\Users\Ethan\AppData\Local\Programs\Python\Python38\python.exe
2022-03-11T15:18:02.866Z [err] npm ERR! gyp ERR! find Python - "C:\Users\Ethan\AppData\Local\Programs\Python\Python38\python.exe" could not be run
2022-03-11T15:18:02.866Z [err] npm ERR! gyp ERR! find Python checking if Python is C:\Program Files\Python38\python.exe
2022-03-11T15:18:02.866Z [err] npm ERR! gyp ERR! find Python - "C:\Program Files\Python38\python.exe" could not be run
2022-03-11T15:18:02.866Z [err] npm ERR! gyp ERR! find Python checking if Python is C:\Users\Ethan\AppData\Local\Programs\Python\Python38-32\python.exe
2022-03-11T15:18:02.866Z [err] npm ERR! gyp ERR! find Python - "C:\Users\Ethan\AppData\Local\Programs\Python\Python38-32\python.exe" could not be run
2022-03-11T15:18:02.866Z [err] npm ERR! gyp ERR! find Python checking if Python is C:\Program Files\Python38-32\python.exe
2022-03-11T15:18:02.867Z [err] npm ERR! gyp ERR! find Python - "C:\Program Files\Python38-32\python.exe" could not be run
2022-03-11T15:18:02.867Z [err] npm ERR! gyp ERR! find Python checking if Python is C:\Program Files (x86)\Python38-32\python.exe
2022-03-11T15:18:02.867Z [err] npm ERR! gyp ERR! find Python - "C:\Program Files (x86)\Python38-32\python.exe" could not be run
2022-03-11T15:18:02.867Z [err] npm ERR! gyp ERR! find Python checking if Python is C:\Users\Ethan\AppData\Local\Programs\Python\Python37\python.exe
2022-03-11T15:18:02.867Z [err] npm
2022-03-11T15:18:02.867Z [err]  ERR! gyp ERR! find Python - "C:\Users\Ethan\AppData\Local\Programs\Python\Python37\python.exe" could not be run
2022-03-11T15:18:02.867Z [err] npm ERR! gyp ERR! find Python checking if Python is C:\Program Files\Python37\python.exe
2022-03-11T15:18:02.867Z [err] npm ERR! gyp ERR! find Python - "C:\Program Files\Python37\python.exe" could not be run
2022-03-11T15:18:02.867Z [err] npm ERR! gyp ERR! find Python checking if Python is C:\Users\Ethan\AppData\Local\Programs\Python\Python37-32\python.exe
2022-03-11T15:18:02.867Z [err] npm ERR! gyp ERR! find Python - "C:\Users\Ethan\AppData\Local\Programs\Python\Python37-32\python.exe" could not be run
2022-03-11T15:18:02.867Z [err] npm ERR! gyp ERR! find Python checking if Python is C:\Program Files\Python37-32\python.exe
2022-03-11T15:18:02.867Z [err] npm ERR! gyp ERR! find Python - "C:\Program Files\Python37-32\python.exe" could not be run
2022-03-11T15:18:02.867Z [err] npm ERR! gyp ERR! find Python checking if Python is C:\Program Files (x86)\Python37-32\python.exe
2022-03-11T15:18:02.867Z [err] npm ERR!
2022-03-11T15:18:02.867Z [err]  gyp ERR! find Python - "C:\Program Files (x86)\Python37-32\python.exe" could not be run
2022-03-11T15:18:02.867Z [err] npm ERR! gyp ERR! find Python checking if Python is C:\Users\Ethan\AppData\Local\Programs\Python\Python36\python.exe
2022-03-11T15:18:02.867Z [err] npm ERR! gyp ERR! find Python - "C:\Users\Ethan\AppData\Local\Programs\Python\Python36\python.exe" could not be run
2022-03-11T15:18:02.867Z [err] npm ERR! gyp ERR! find Python checking if Python is C:\Program Files\Python36\python.exe
2022-03-11T15:18:02.867Z [err] npm ERR! gyp ERR! find Python - "C:\Program Files\Python36\python.exe" could not be run
2022-03-11T15:18:02.867Z [err] npm ERR! gyp ERR! find Python checking if Python is C:\Users\Ethan\AppData\Local\Programs\Python\Python36-32\python.exe
2022-03-11T15:18:02.867Z [err] npm ERR! gyp ERR! find Python - "C:\Users\Ethan\AppData\Local\Programs\Python\Python36-32\python.exe" could not be run
2022-03-11T15:18:02.867Z [err] npm 
2022-03-11T15:18:02.867Z [err] ERR! gyp ERR! find Python checking if Python is C:\Program Files\Python36-32\python.exe
2022-03-11T15:18:02.867Z [err] npm ERR! gyp ERR! find Python - "C:\Program Files\Python36-32\python.exe" could not be run
2022-03-11T15:18:02.867Z [err] npm ERR! gyp ERR! find Python checking if Python is C:\Program Files (x86)\Python36-32\python.exe
2022-03-11T15:18:02.867Z [err] npm ERR! gyp ERR! find Python - "C:\Program Files (x86)\Python36-32\python.exe" could not be run
2022-03-11T15:18:02.867Z [err] npm
2022-03-11T15:18:02.867Z [err]  ERR! gyp ERR! find Python checking if the py launcher can be used to find Python 3
2022-03-11T15:18:02.867Z [err] npm ERR! gyp ERR! find Python - "py.exe" is not in PATH or produced an error
2022-03-11T15:18:02.867Z [err] npm ERR! gyp ERR! find Python 
2022-03-11T15:18:02.867Z [err] npm 
2022-03-11T15:18:02.867Z [err] ERR! gyp ERR! find Python **********************************************************
2022-03-11T15:18:02.867Z [err] npm ERR! gyp ERR! find Python You need to install the latest version of Python.
2022-03-11T15:18:02.867Z [err] npm ERR! gyp ERR! find Python Node-gyp should be able to find and use Python. If not,
2022-03-11T15:18:02.867Z [err] npm 
2022-03-11T15:18:02.867Z [err] ERR! gyp ERR! find Python you can try one of the following options:
2022-03-11T15:18:02.867Z [err] npm ERR! gyp ERR! find Python - Use the switch --python="C:\Path\To\python.exe"
2022-03-11T15:18:02.867Z [err] npm ERR! gyp ERR! find Python   (accepted by both node-gyp and npm)
2022-03-11T15:18:02.867Z [err] npm 
2022-03-11T15:18:02.867Z [err] ERR! gyp ERR! find Python - Set the environment variable PYTHON
2022-03-11T15:18:02.867Z [err] npm ERR! gyp ERR! find Python - Set the npm configuration variable python:
2022-03-11T15:18:02.867Z [err] npm ERR! gyp ERR! find Python   npm config set python "C:\Path\To\python.exe"
2022-03-11T15:18:02.867Z [err] npm 
2022-03-11T15:18:02.867Z [err] ERR! gyp ERR! find Python For more information consult the documentation at:
2022-03-11T15:18:02.867Z [err] npm ERR! gyp ERR! find Python https://github.com/nodejs/node-gyp#installation
2022-03-11T15:18:02.867Z [err] npm ERR! gyp ERR! find Python **********************************************************
2022-03-11T15:18:02.867Z [err] npm
2022-03-11T15:18:02.867Z [err]  ERR! gyp ERR! find Python 
2022-03-11T15:18:02.867Z [err] npm ERR! gyp ERR! configure error 
2022-03-11T15:18:02.867Z [err] npm ERR! gyp ERR! stack Error: Could not find any Python installation to use
2022-03-11T15:18:02.867Z [err] npm
2022-03-11T15:18:02.868Z [err]  ERR! gyp ERR! stack     at PythonFinder.fail (C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\lib\find-python.js:330:47)
2022-03-11T15:18:02.868Z [err] npm ERR! gyp ERR! stack     at PythonFinder.runChecks (C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\lib\find-python.js:159:21)
2022-03-11T15:18:02.868Z [err] npm ERR! gyp ERR! stack     at PythonFinder.<anonymous> (C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\lib\find-python.js:228:18)
2022-03-11T15:18:02.868Z [err] npm ERR! gyp ERR! stack     at PythonFinder.execFileCallback (C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\lib\find-python.js:294:16)
2022-03-11T15:18:02.868Z [err] npm ERR! gyp ERR! stack     at exithandler (node:child_process:406:5)
2022-03-11T15:18:02.868Z [err] npm ERR! gyp ERR! stack     at ChildProcess.errorhandler (node:child_process:418:5)
2022-03-11T15:18:02.868Z [err] npm ERR! gyp ERR! stack     at ChildProcess.emit (node:events:527:28)
2022-03-11T15:18:02.868Z [err] npm ERR! gyp ERR! stack     at Process.ChildProcess._handle.onexit (node:internal/child_process:289:12)
2022-03-11T15:18:02.868Z [err] npm ERR! gyp ERR! stack     at onErrorNT (node:internal/child_process:476:16)
2022-03-11T15:18:02.868Z [err] npm ERR! gyp ERR! stack     at processTicksAndRejections (node:internal/process/task_queues:83:21)
2022-03-11T15:18:02.868Z [err] npm ERR! gyp ERR! System Windows_NT 10.0.19043
2022-03-11T15:18:02.868Z [err] npm ERR!
2022-03-11T15:18:02.868Z [err]  gyp ERR! command "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\node_modules\\node-gyp\\bin\\node-gyp.js" "rebuild"
2022-03-11T15:18:02.868Z [err] npm ERR! gyp ERR! cwd C:\Users\Ethan\.node-red\node_modules\@serialport\bindings
2022-03-11T15:18:02.868Z [err] npm ERR! gyp ERR! node -v v17.7.1
2022-03-11T15:18:02.868Z [err] npm ERR! gyp ERR! node-gyp -v v8.4.1
2022-03-11T15:18:02.868Z [err] npm ERR! gyp ERR! not ok
2022-03-11T15:18:02.869Z [err] 
2022-03-11T15:18:02.869Z [err] npm 
2022-03-11T15:18:02.869Z [err] ERR! A complete log of this run can be found in:
2022-03-11T15:18:02.869Z [err] npm ERR!     C:\Users\Ethan\AppData\Local\npm-cache\_logs\2022-03-11T15_17_51_936Z-debug-0.log
2022-03-11T15:18:02.892Z rc=1

Yes, you have exactly the same problem as this post earlier...

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.