在Beaglebone Black Wireless上的节点红色上未显示BBB调色板

时间:2017-02-15 18:41:23

标签: node.js npm beagleboneblack node-red

我的节点红色安装不显示访问beaglebone IO(node-red-node-beaglebone)所需的节点。

在我看来,错误实际上是因为node-red-node-beaglebone加载了需要serialport的octalbonescript,而且有些东西请求serialPort而不是serialport。

我已经尝试过预安装的,稳定的和lts nodejs版本。另外npm @ 2和npm @ 3用于安装节点。 .node-red文件夹也已被我删除,并且打包的node-red-node-beaglebone已安装在从scrach开始的.node-red / node_modules文件夹中。

root@beaglebone:/etc# cat debian_version 
8.7
root@beaglebone:~# npm -v
2.15.11
root@beaglebone:~# uname -a
Linux beaglebone 4.4.30-ti-r64 #1 SMP Fri Nov 4 21:23:33 UTC 2016 armv7l GNU/Linux
root@beaglebone:~# export AUTO_LOAD_CAPE=0     #optional
root@beaglebone:~# node-red-pi
1487183133432 Board Looking for connected device  
15 Feb 19:25:34 - [info] 

Welcome to Node-RED
===================

15 Feb 19:25:34 - [info] Node-RED version: v0.16.2
15 Feb 19:25:34 - [info] Node.js  version: v6.9.5
15 Feb 19:25:34 - [info] Linux 4.4.30-ti-r64 arm LE
15 Feb 19:25:44 - [info] Loading palette nodes
15 Feb 19:25:57 - [warn] ------------------------------------------------------
15 Feb 19:25:57 - [warn] [bbb] ReferenceError: serialPort is not defined    +seems to be the problem
15 Feb 19:25:57 - [warn] ------------------------------------------------------
15 Feb 19:25:57 - [info] Settings file  : /root/.node-red/settings.js
15 Feb 19:25:57 - [info] User directory : /root/.node-red
15 Feb 19:25:57 - [info] Flows file     : /root/.node-red/flows_beaglebone.json
15 Feb 19:25:57 - [info] Creating new flow file
15 Feb 19:25:57 - [debug] loaded flow revision: 513fd923d68021b8ee98fcb250470340
15 Feb 19:25:57 - [debug] red/runtime/nodes/credentials.load : no user key present
15 Feb 19:25:57 - [debug] red/runtime/nodes/credentials.load : using default key
15 Feb 19:25:57 - [info] Starting flows
15 Feb 19:25:57 - [info] Started flows
15 Feb 19:25:57 - [info] Server now running at http://127.0.0.1:1880/

0 个答案:

没有答案