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

在漫長的編譯過程後,可以使用了 😁,問題解決

 

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章