我想检索使用MQTT协议从树莓派发送到ubuntu PC的值。为此,我想将节点红色与influxdb一起使用。结果,我在ubuntu上安装了红色节点,但是当我启动它时,出现了这些无法修复的错误。我重新安装了几次,但无济于事。如果您有解决方案,我会接受。 感谢您的反馈。
在终端:
opens@opens-maman:~/node-red$ sudo node-red-start
Start Node-RED
Once Node-RED has started, point a browser at http://192.168.0.167:1880
On Pi Node-RED works better with the Firefox or Chrome browser
Use sudo systemctl enable nodered.service to autostart Node-RED at every boot
Use sudo systemctl disable nodered.service to disable autostart on boot
To find more nodes and example flows - go to http://flows.nodered.org
/usr/local/lib/node_modules/node-red/node_modules/fs-extra/lib
/fs/index.js:93
exports.write = function (fd, buffer, ...args) {
^^^
SyntaxError: Unexpected token ...
at exports.runInThisContext (vm.js:53:16)
at Module._compile (module.js:374:25)
at Object.Module._extensions..js (module.js:417:10)
at Module.load (module.js:344:32)
at Function.Module._load (module.js:301:12)
at Module.require (module.js:354:17)
at require (internal/module.js:12:17)
at Object.<anonymous> (/usr/local/lib/node_modules/node-red/node_modules/fs-extra/lib/index.js:6:3)
at Module._compile (module.js:410:26)
at Object.Module._extensions..js (module.js:417:10)