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

问题

设备中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

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

 

  • 0
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 2
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 2
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值