0

我是一个新手,希望在 Raspberry Pi 4 上运行的 Home Assistant OS 中使用 Node-Red 控制我的 LG 电视。

我尝试从 Node red 的“manage palette”中安装“node-red-contrib-lgtv”,但出现以下错误;

2022-02-12T07:16:31.961Z Install : node-red-contrib-lgtv 1.1.0

2022-02-12T07:16:34.043Z npm install --no-audit --no-update-notifier --no-fund --save --save-prefix=~ --production --engine-strict node-red-contrib-lgtv@1.1.0
2022-02-12T07:16:42.828Z [err] npm
2022-02-12T07:16:42.828Z [err]  
2022-02-12T07:16:42.828Z [err] ERR! code
2022-02-12T07:16:42.829Z [err]  126
2022-02-12T07:16:42.829Z [err] npm ERR!
2022-02-12T07:16:42.830Z [err]  path /config/node-red/node_modules/utf-8-validate
2022-02-12T07:16:42.836Z [err] npm ERR! command failed
2022-02-12T07:16:42.836Z [err] npm ERR! command
2022-02-12T07:16:42.837Z [err]  sh -c node-gyp-build
2022-02-12T07:16:42.837Z [err] npm ERR! sh: node-gyp-build: Permission denied
2022-02-12T07:16:42.884Z [err] 
2022-02-12T07:16:42.884Z [err] npm
2022-02-12T07:16:42.885Z [err]  ERR! A complete log of this run can be found in:
2022-02-12T07:16:42.885Z [err] npm ERR!     /root/.npm/_logs/2022-02-12T07_16_42_840Z-debug.log
2022-02-12T07:16:42.908Z rc=126

我怀疑这是一个依赖问题,但不幸的是,主页上的“依赖状态”链接不起作用。

知道这些错误是什么意思以及如何正确安装它吗?

4

0 回答 0