节点红色未启动

时间:2017-05-24 20:37:37

标签: port beagleboneblack node-red

我正在尝试在BeagleboneBlack上启动'node-red',但应用程序只返回此错误:

24 May 20:15:53 - [info] Node-RED version: v0.16.2
24 May 20:15:53 - [info] Node.js  version: v4.8.0
24 May 20:15:53 - [info] Linux 4.4.54-ti-r93 arm LE
24 May 20:15:56 - [info] Loading palette nodes
24 May 20:16:14 - [warn] ---------------------------------------------------          
---
24 May 20:16:14 - [warn] [rpi-gpio] Info : Ignoring Raspberry Pi specific  
node
24 May 20:16:14 - [warn] [upm-grove-button] Error: Module version mismatch. 
Expected 46, got 14.
24 May 20:16:14 - [warn] [upm-grove-buzzer] Error: Module version mismatch. 
Expected 46, got 14.
24 May 20:16:14 - [warn] [upm-grove-led] Error: Module version mismatch. 
Expected 46, got 14.
24 May 20:16:14 - [warn] [upm-grove-light] Error: Module version mismatch. 
Expected 46, got 14.
24 May 20:16:14 - [warn] [upm-grove-relay] Error: Module version mismatch. 
Expected 46, got 14.
24 May 20:16:14 - [warn] [upm-grove-rgb-lcd] Error: Module version mismatch. 
Expected 46, got 14.
24 May 20:16:14 - [warn] [upm-grove-rotary] Error: Module version mismatch. 
Expected 46, got 14.
24 May 20:16:14 - [warn] [upm-grove-sound] Error: Module version mismatch. 
Expected 46, got 14.
24 May 20:16:14 - [warn] [upm-grove-temperature] Error: Module version 
mismatch. Expected 46, got 14.
24 May 20:16:14 - [warn] [upm-grove-adxl345] Error: Module version mismatch. 
Expected 46, got 14.
24 May 20:16:14 - [warn] [upm-grove-servo] Error: Module version mismatch. 
Expected 46, got 14.
24 May 20:16:14 - [warn] ---------------------------------------------------
---
24 May 20:16:14 - [info] Settings file  : /root/.node-red/settings.js
24 May 20:16:14 - [info] User directory : /root/.node-red
24 May 20:16:14 - [info] Flows file     : /root/.node-
red/flows_beaglebone.json
24 May 20:16:14 - [info] Creating new flow file
24 May 20:16:14 - [info] Starting flows
24 May 20:16:15 - [info] Started flows
24 May 20:16:15 - [warn] Communication server error: Error: listen 
EADDRINUSE 0.0.0.0:1880
24 May 20:16:15 - [error] Unable to listen on http://127.0.0.1:1880/
24 May 20:16:15 - [error] Error: port in use

我已经尝试重新安装软件包,但错误仍然存​​在。请帮忙。感谢

2 个答案:

答案 0 :(得分:2)

Error: port in use错误表示您已使用端口1880进行了处理。

您可能已经在BeagleBoneBlack上运行了Node-RED。您可以通过运行来检查:

ps -ef | grep node-red

ps -ef | grep red.js

取决于它的运行方式。输出将显示是否已运行节点红色进程。

你如何阻止它将取决于它是如何运行的。查看文档,了解如何设置自动运行。

答案 1 :(得分:0)

该错误表明端口1880正在使用中。通过以下方法检查“红色节点”是否处于活动状态:

  

ps -ef | grep node-red

要停止活动进程,请运行:

  

node-red-stop