Node Red 升级串口node-red-node-serialport后,程序打印illegal instruction后退出

陈野
2023-12-01

问题

设备中NodeRed节点“node-red-node-serialport”发现有了更新(0.10.3),索性删除了节点,并使用npm指令和界面安装,但不论哪种方式,在使用节点后,都会出现 illegal instruction 后退出,不论再安何种版本,都是异常。。。。尴尬

解决方案

在网上搜索 NodeRed serialport ,找到一个贴子

I suspect that your image somehow got a serial node installed that was not built from sources but consists of a pre-built binary for standard i586, rather than the Quark processor. That caused crashes in the past. Normally, the serial node gets rebuilt during installation and even updates. You can trigger that manually by running "npm rebuild --build-from-source node-red-node-serialport" in /home/root/.node-red/node_modules.

提到了可能是因为节点安装不是由源码编译,而是包含预编译的二进制数据。

这个方向很有可能。。。。

按照给出的方法

npm rebuild --build-from-source node-red-node-serialport

然而没有奏效。。。。尴尬

继续找的过程中又发现了一个

How did you install the serialport nodes?

For the Quark processor they have to be built from source:

npm install serialport --build-from-source


Kind regards!

删除node-red-node-serialport后,依然不启效果,但已然感觉是没有编译的问题

最后解决方法

npm rebuild --build-from-source

在漫长的编译过程后,可以使用了 ,问题解决

 

 类似资料: