Instalacja MBus

Cześć,
potrzebuję zainstalować dodatek do Node-Red - mbus, jednak podczas instalacji wyrzuca błąd

Cytat
2022-10-27T20:01:10.280Z Install : node-red-contrib-m-bus 2.0.0
2022-10-27T20:01:04.753Z npm install --no-audit --no-update-notifier --no-fund --save --save-prefix=~ --production --engine-strict node-red-contrib-m-bus@2.0.0
2022-10-27T20:01:05.460Z [err] npm
2022-10-27T20:01:05.461Z [err] WARN
2022-10-27T20:01:05.461Z [err] config production Use --omit=dev instead.
2022-10-27T20:01:06.922Z [err] npm
2022-10-27T20:01:06.922Z [err] WARN deprecated @serialport/bindings@9.2.9: This package has been renamed to @serialport/bindings-cpp.
2022-10-27T20:01:07.520Z [err] npm
2022-10-27T20:01:07.520Z [err] ERR! code 1
2022-10-27T20:01:07.520Z [err] npm
2022-10-27T20:01:07.520Z [err] ERR!
2022-10-27T20:01:07.520Z [err]
2022-10-27T20:01:07.520Z [err] path /config/node-red/node_modules/node-mbus
2022-10-27T20:01:07.523Z [err] npm ERR!
2022-10-27T20:01:07.523Z [err] command failed
2022-10-27T20:01:07.523Z [err] npm ERR!
2022-10-27T20:01:07.524Z [err] command sh -c node-gyp rebuild
2022-10-27T20:01:07.524Z [err] npm
2022-10-27T20:01:07.524Z [err] ERR! gyp info it worked if it ends with ok
2022-10-27T20:01:07.524Z [err] npm ERR! gyp info using node-gyp@9.0.0
2022-10-27T20:01:07.524Z [err] npm ERR!
2022-10-27T20:01:07.524Z [err] gyp info using node@16.17.1 | linux | x64
2022-10-27T20:01:07.524Z [err] npm ERR!
2022-10-27T20:01:07.524Z [err] gyp ERR! find Python
2022-10-27T20:01:07.524Z [err] npm
2022-10-27T20:01:07.524Z [err] ERR! gyp ERR! find Python checking Python explicitly set from command line or npm configuration
2022-10-27T20:01:07.524Z [err] npm
2022-10-27T20:01:07.524Z [err] ERR! gyp ERR! find Python - “–python=” or “npm config get python” is “/usr/bin/python3”
2022-10-27T20:01:07.524Z [err] npm
2022-10-27T20:01:07.525Z [err] ERR! gyp ERR! find Python - “/usr/bin/python3” is not in PATH or produced an error
2022-10-27T20:01:07.525Z [err] npm
2022-10-27T20:01:07.525Z [err] ERR! gyp ERR! find Python Python is not set from environment variable PYTHON
2022-10-27T20:01:07.525Z [err] npm
2022-10-27T20:01:07.525Z [err] ERR! gyp ERR! find Python checking if “python3” can be used
2022-10-27T20:01:07.525Z [err] npm ERR! gyp ERR! find Python - “python3” is not in PATH or produced an error
2022-10-27T20:01:07.525Z [err] npm ERR! gyp ERR! find Python checking if “python” can be used
2022-10-27T20:01:07.525Z [err] npm ERR! gyp ERR! find Python - “python” is not in PATH or produced an error
2022-10-27T20:01:07.525Z [err] npm ERR!
2022-10-27T20:01:07.525Z [err] gyp ERR! find Python
2022-10-27T20:01:07.525Z [err] npm ERR!
2022-10-27T20:01:07.525Z [err] gyp ERR! find Python **********************************************************
2022-10-27T20:01:07.525Z [err] npm ERR!
2022-10-27T20:01:07.525Z [err] gyp ERR! find Python You need to install the latest version of Python.
2022-10-27T20:01:07.525Z [err] npm
2022-10-27T20:01:07.525Z [err] ERR! gyp ERR! find Python Node-gyp should be able to find and use Python. If not,
2022-10-27T20:01:07.525Z [err] npm
2022-10-27T20:01:07.526Z [err] ERR! gyp ERR! find Python you can try one of the following options:
2022-10-27T20:01:07.526Z [err] npm
2022-10-27T20:01:07.526Z [err] ERR! gyp ERR! find Python - Use the switch --python="/path/to/pythonexecutable"
2022-10-27T20:01:07.526Z [err] npm
2022-10-27T20:01:07.526Z [err] ERR! gyp ERR! find Python (accepted by both node-gyp and npm)
2022-10-27T20:01:07.526Z [err] npm ERR! gyp ERR! find Python - Set the environment variable PYTHON
2022-10-27T20:01:07.526Z [err] npm ERR!
2022-10-27T20:01:07.526Z [err] gyp ERR! find Python - Set the npm configuration variable python:
2022-10-27T20:01:07.526Z [err] npm ERR!
2022-10-27T20:01:07.526Z [err] gyp ERR! find Python npm config set python “/path/to/pythonexecutable”
2022-10-27T20:01:07.526Z [err] npm ERR!
2022-10-27T20:01:07.526Z [err] gyp ERR! find Python For more information consult the documentation at:
2022-10-27T20:01:07.526Z [err] npm ERR!
2022-10-27T20:01:07.526Z [err] gyp ERR! find Python GitHub - nodejs/node-gyp: Node.js native addon build tool
2022-10-27T20:01:07.526Z [err] npm ERR!
2022-10-27T20:01:07.526Z [err] gyp ERR! find Python *********************************************************
2022-10-27T20:01:07.526Z [err] npm ERR!
2022-10-27T20:01:07.526Z [err] gyp ERR! find Python
2022-10-27T20:01:07.526Z [err] npm ERR!
2022-10-27T20:01:07.526Z [err] gyp ERR! configure error
2022-10-27T20:01:07.526Z [err] npm
2022-10-27T20:01:07.527Z [err] ERR! gyp ERR! stack Error: Could not find any Python installation to use
2022-10-27T20:01:07.527Z [err] npm ERR!
2022-10-27T20:01:07.527Z [err] gyp ERR! stack at PythonFinder.fail (/usr/lib/node_modulesnpm/node_modules/node-gyp/lib/find-python.js:330:47)
2022-10-27T20:01:07.527Z [err] npm
2022-10-27T20:01:07.527Z [err] ERR! gyp ERR! stack at PythonFinder.runChecks (/usr/lib/node_modules/npm/node_modules/node-gyp/lib/find-python.js:159:21)
2022-10-27T20:01:07.527Z [err] npm
2022-10-27T20:01:07.527Z [err] ERR! gyp ERR! stack at PythonFinder. (/usr/lib/node_modules/npm/node_modules/node-gyp/lib/find-python.js:202:16)
2022-10-27T20:01:07.527Z [err] npm
2022-10-27T20:01:07.527Z [err] ERR! gyp ERR! stack at PythonFinder.execFileCallback (/usr/lib/node_modules/npm/node_modules/node-gyp/lib/find-python.js:294:16)
2022-10-27T20:01:07.527Z [err] npm
2022-10-27T20:01:07.527Z [err] ERR! gyp ERR! stack at exithandler (node:child_process:408:5)
2022-10-27T20:01:07.527Z [err] npm ERR! gyp ERR! stack at ChildProcess.errorhandler (node:child_process:420:5)
2022-10-27T20:01:07.527Z [err] npm ERR! gyp ERR! stack at ChildProcess.emit (node:events:513:28)
2022-10-27T20:01:07.527Z [err] npm ERR!
2022-10-27T20:01:07.527Z [err] gyp ERR! stack at Process.ChildProcess._handle.onexit (node:internal/child_process:289:12)
2022-10-27T20:01:07.527Z [err] npm ERR!
2022-10-27T20:01:07.527Z [err] gyp ERR! stack at onErrorNT (node:internal/child_process:478:16)
2022-10-27T20:01:07.527Z [err] npm ERR!
2022-10-27T20:01:07.528Z [err] gyp ERR! stack at processTicksAndRejections (node:internal/process/task_queues:83:21)
2022-10-27T20:01:07.528Z [err] npm ERR!
2022-10-27T20:01:07.528Z [err] gyp ERR! System Linux 5.10.0-19-amd64
2022-10-27T20:01:07.528Z [err] npm
2022-10-27T20:01:07.528Z [err] ERR! gyp ERR! command “/usr/bin/node” “/usr/lib/node_modulesnpm/node_modules/node-gyp/bin/node-gyp.js” “rebuild”
2022-10-27T20:01:07.528Z [err] npm
2022-10-27T20:01:07.528Z [err] ERR gyp ERR! cwd /config/node-red/node_modules/node-mbus
2022-10-27T20:01:07.528Z [err] npm
2022-10-27T20:01:07.528Z [err] ERR! gyp ERR! node -v v16.17.1
2022-10-27T20:01:07.528Z [err] npm
2022-10-27T20:01:07.528Z [err] ERR! gyp ERR! node-gyp -v v9.0.0
2022-10-27T20:01:07.528Z [err] npm ERR! gyp ERR! not ok
2022-10-27T20:01:07.532Z [err]
2022-10-27T20:01:07.532Z [err] npm
2022-10-27T20:01:07.532Z [err] ERR! A complete log of this run can be found in:
2022-10-27T20:01:07.532Z [err] npm
2022-10-27T20:01:07.532Z [err] ERR! /root/.npm/_logs/2022-10-27T20_01_05_393Z-debug-0.log
2022-10-27T20:01:07.543Z rc=1

Cytat
dodatkowe informacje:
npm -v
7.5.2
nodejs -v
v12.22.12
python -V
Python 2.7.18
python3 -V
Python 3.9.2

Za wszelkie wskazówki z góry dziękuję.

1 Like