Добрый день, была задача установить компонент HomeKit для Nod-red, но не удалось из-за устаревшей версии Nodejs 16, плагин HomeKit описанный в вашей документации уже требует Nodejs не ниже 18. При обновлении Nodejs перестал запускаться Node Red, запускается только в безопасном режиме, удалил Node Red и установил заново по документации с зависимостями и Nodejs v16, в итоге Node-red также не запускается, только в безопасном режиме в консоле выдает:
root@wirenboard-AKO7YXNR:~# systemctl status nodered
● nodered.service - Node-RED graphical event wiring tool
Loaded: loaded (/etc/systemd/system/nodered.service; enabled; vendor preset: enabled)
Active: failed (Result: exit-code) since Sat 2024-06-22 19:13:53 MSK; 17s ago
Process: 11991 ExecStart=/usr/bin/env node-red $NODE_OPTIONS $NODE_RED_OPTIONS (code=exited, status=127)
Main PID: 11991 (code=exited, status=127)
CPU: 13ms
Jun 22 19:13:52 wirenboard-AKO7YXNR systemd[1]: nodered.service: Scheduled restart job, restart counter is at 5.
Jun 22 19:13:53 wirenboard-AKO7YXNR systemd[1]: Stopped Node-RED graphical event wiring tool.
Jun 22 19:13:53 wirenboard-AKO7YXNR systemd[1]: nodered.service: Start request repeated too quickly.
Jun 22 19:13:53 wirenboard-AKO7YXNR systemd[1]: nodered.service: Failed with result 'exit-code'.
Jun 22 19:13:53 wirenboard-AKO7YXNR systemd[1]: Failed to start Node-RED graphical event wiring tool.
в системном журнале:
22-06-2024 19:13:52.811 /usr/bin/env: ‘node-red’: No such file or directory
При запуске в безопасном режиме Node-Red указывает на установленную версию Nodejs 18:
root@wirenboard-AKO7YXNR:~# node-red --safe
22 Jun 19:32:04 - [info]
Welcome to Node-RED
===================
22 Jun 19:32:04 - [info] Node-RED version: v4.0.0
22 Jun 19:32:04 - [info] Node.js version: v18.20.3
22 Jun 19:32:04 - [info] Linux 5.10.35-wb164 arm LE
22 Jun 19:32:09 - [info] Loading palette nodes
22 Jun 19:32:27 - [info] Settings file : /root/.node-red/settings.js
22 Jun 19:32:27 - [info] Context store : 'default' [module=memory]
22 Jun 19:32:27 - [info] User directory : /root/.node-red
22 Jun 19:32:27 - [warn] Projects disabled : editorTheme.projects.enabled=false
22 Jun 19:32:27 - [info] Flows file : /root/.node-red/flows.json
22 Jun 19:32:27 - [info] Creating new flow file
22 Jun 19:32:28 - [warn]
---------------------------------------------------------------------
Your flow credentials file is encrypted using a system-generated key.
If the system-generated key is lost for any reason, your credentials
file will not be recoverable, you will have to delete it and re-enter
your credentials.
You should set your own key using the 'credentialSecret' option in
your settings file. Node-RED will then re-encrypt your credentials
file using your chosen key the next time you deploy a change.
---------------------------------------------------------------------
22 Jun 19:32:28 - [info] Server now running at http://127.0.0.1:1880/
22 Jun 19:32:28 - [warn] Encrypted credentials not found
22 Jun 19:32:28 - [info] *****************************************************************
22 Jun 19:32:28 - [info] Flows stopped in safe mode. Deploy to start.
22 Jun 19:32:28 - [info] *****************************************************************
Подскажите как это исправить