IBM Cloud 是否支持 node-red-ui-node-table,它是如何工作的?
Is node-red-ui-node-table supported on IBM Cloud, how does it work?
被看到https://discourse.nodered.org/t/examples-for-node-red-node-ui-table/14256.
并尝试了 @ 14/51 提到的代码片段。
它在 IBM Cloud 和我的 Mac 上不起作用,尽管我可以安装该节点。调试中没有消息,也没有日志(本地)。
我想知道是否有任何先决条件、工作示例?
在本地机器上安装最新的仪表板后编辑:
$ node-red
10 Oct 14:47:28 - [info]
Welcome to Node-RED
===================
10 Oct 14:47:28 - [info] Node-RED version: v0.18.4
10 Oct 14:47:28 - [info] Node.js version: v8.12.0
10 Oct 14:47:28 - [info] Darwin 18.7.0 x64 LE
10 Oct 14:47:29 - [info] Loading palette nodes
10 Oct 14:47:37 - [info] Dashboard version 2.8.2 started at /ui
10 Oct 14:47:40 - [warn] ------------------------------------------------------
10 Oct 14:47:40 - [warn] [node-red/rpi-gpio] Info : Ignoring Raspberry Pi specific node
10 Oct 14:47:40 - [warn] [node-red-contrib-homekit/homekit] Error: The module '/Users/jps/.node-red/node_modules/mdns/build/Release/dns_sd_bindings.node'
was compiled against a different Node.js version using
NODE_MODULE_VERSION 48. This version of Node.js requires
NODE_MODULE_VERSION 57. Please try re-compiling or re-installing
the module (for instance, using `npm rebuild` or `npm install`).
10 Oct 14:47:40 - [warn] [node-red-contrib-hyperledger-composer/hperledger-composer] 'hyperledger-composer-in' already registered by module node-red-contrib-composer
10 Oct 14:47:40 - [warn] [node-red-node-sensortag/sensorTag] Error: The module '/Users/jps/.node-red/node_modules/xpc-connection/build/Release/binding.node'
was compiled against a different Node.js version using
NODE_MODULE_VERSION 48. This version of Node.js requires
NODE_MODULE_VERSION 57. Please try re-compiling or re-installing
the module (for instance, using `npm rebuild` or `npm install`).
10 Oct 14:47:40 - [warn] ------------------------------------------------------
10 Oct 14:47:40 - [info] Settings file : /Users/jps/.node-red/settings.js
10 Oct 14:47:40 - [info] User directory : /Users/jps/.node-red
10 Oct 14:47:40 - [warn] Projects disabled : set editorTheme.projects.enabled=true to enable
10 Oct 14:47:40 - [info] Flows file : /Users/jps/.node-red/flows_MacBook-Pro-3.fritz.box.json
10 Oct 14:47:40 - [info] Server now running at http://127.0.0.1:1880/
10 Oct 14:47:40 - [info] Starting flows
10 Oct 14:47:40 - [error] [telegram bot:4316da31.0f7c94] Configuration data for webhook is missing. Defaulting to polling mode.
10 Oct 14:47:40 - [info] [mosca in:c2c2553a.5302a8] Binding mosca mqtt server on port: 1884
TypeError: RED.require is not a function
at new TableNode (/Users/jps/.node-red/node_modules/node-red-node-ui-table/node.js:48:30)
at createNode (/usr/local/lib/node_modules/node-red/red/runtime/nodes/flows/Flow.js:305:18)
at Flow.start (/usr/local/lib/node_modules/node-red/red/runtime/nodes/flows/Flow.js:89:35)
Node-REDwipe/reinstall/restart 之后的输出
10 Oct 20:56:19 - [info] Node-RED version: v0.18.4
10 Oct 20:56:19 - [info] Node.js version: v8.12.0
10 Oct 20:56:19 - [info] Darwin 18.7.0 x64 LE
10 Oct 20:56:19 - [info] Loading palette nodes
...
10 Oct 21:00:53 - [info] Starting flows
TypeError: RED.require is not a function
at new TableNode (/Users/jps/.node-red/node_modules/node-red-node-ui-table/node.js:48:30)
at createNode (/usr/local/lib/node_modules/node-red/red/runtime/nodes/flows/Flow.js:305:18)
at Flow.start (/usr/local/lib/node_modules/node-red/red/runtime/nodes/flows/Flow.js:89:35)
at start (/usr/local/lib/node_modules/node-red/red/runtime/nodes/flows/index.js:307:29)
at /usr/local/lib/node_modules/node-red/red/runtime/nodes/flows/index.js:144:21
at tryCatchReject (/usr/local/lib/node_modules/node-red/node_modules/when/lib/makePromise.js:845:30)
at runContinuation1 (/usr/local/lib/node_modules/node-red/node_modules/when/lib/makePromise.js:804:4)
at Fulfilled.when (/usr/local/lib/node_modules/node-red/node_modules/when/lib/makePromise.js:592:4)
at Pending.run (/usr/local/lib/node_modules/node-red/node_modules/when/lib/makePromise.js:483:13)
at Scheduler._drain (/usr/local/lib/node_modules/node-red/node_modules/when/lib/Scheduler.js:62:19)
10 Oct 21:00:53 - [info] Started flows
10 Oct 21:01:21 - [info] Stopping flows
10 Oct 21:01:21 - [info] Stopped flows
仪表板上有一个空白页面和一条闪烁的连接丢失消息。
Node-RED 的版本 0.18.x 已经非常非常过时了。
最近发布了 1.0.1 版,您需要升级才能使 node-red-ui-node-table
正常工作。
仪表板版本也列在跟踪输出中,它是 2.8.2,这也很旧,当前是 2.17.1,您至少需要在 2.10.0 上才能支持额外的仪表板节点。
升级后,您还应该 运行 npm rebuild
在 /Users/jps/.node-red
中修复 homekit 节点跟踪中列出的问题。
不要通过 Manage Palette 添加额外的包,而是使用 IBM Cloud 工具链和 IBM Cloud 中的 git 存储库将以下包添加到 package.json。提交更改,IBM Cloud Continuous Delivery 工具链将构建和部署 Cloud Foundry 应用程序。
"node-red-node-ui-table":"0.x",
"node-red-dashboard":"2.x",
被看到https://discourse.nodered.org/t/examples-for-node-red-node-ui-table/14256.
并尝试了 @ 14/51 提到的代码片段。
它在 IBM Cloud 和我的 Mac 上不起作用,尽管我可以安装该节点。调试中没有消息,也没有日志(本地)。
我想知道是否有任何先决条件、工作示例?
在本地机器上安装最新的仪表板后编辑:
$ node-red
10 Oct 14:47:28 - [info]
Welcome to Node-RED
===================
10 Oct 14:47:28 - [info] Node-RED version: v0.18.4
10 Oct 14:47:28 - [info] Node.js version: v8.12.0
10 Oct 14:47:28 - [info] Darwin 18.7.0 x64 LE
10 Oct 14:47:29 - [info] Loading palette nodes
10 Oct 14:47:37 - [info] Dashboard version 2.8.2 started at /ui
10 Oct 14:47:40 - [warn] ------------------------------------------------------
10 Oct 14:47:40 - [warn] [node-red/rpi-gpio] Info : Ignoring Raspberry Pi specific node
10 Oct 14:47:40 - [warn] [node-red-contrib-homekit/homekit] Error: The module '/Users/jps/.node-red/node_modules/mdns/build/Release/dns_sd_bindings.node'
was compiled against a different Node.js version using
NODE_MODULE_VERSION 48. This version of Node.js requires
NODE_MODULE_VERSION 57. Please try re-compiling or re-installing
the module (for instance, using `npm rebuild` or `npm install`).
10 Oct 14:47:40 - [warn] [node-red-contrib-hyperledger-composer/hperledger-composer] 'hyperledger-composer-in' already registered by module node-red-contrib-composer
10 Oct 14:47:40 - [warn] [node-red-node-sensortag/sensorTag] Error: The module '/Users/jps/.node-red/node_modules/xpc-connection/build/Release/binding.node'
was compiled against a different Node.js version using
NODE_MODULE_VERSION 48. This version of Node.js requires
NODE_MODULE_VERSION 57. Please try re-compiling or re-installing
the module (for instance, using `npm rebuild` or `npm install`).
10 Oct 14:47:40 - [warn] ------------------------------------------------------
10 Oct 14:47:40 - [info] Settings file : /Users/jps/.node-red/settings.js
10 Oct 14:47:40 - [info] User directory : /Users/jps/.node-red
10 Oct 14:47:40 - [warn] Projects disabled : set editorTheme.projects.enabled=true to enable
10 Oct 14:47:40 - [info] Flows file : /Users/jps/.node-red/flows_MacBook-Pro-3.fritz.box.json
10 Oct 14:47:40 - [info] Server now running at http://127.0.0.1:1880/
10 Oct 14:47:40 - [info] Starting flows
10 Oct 14:47:40 - [error] [telegram bot:4316da31.0f7c94] Configuration data for webhook is missing. Defaulting to polling mode.
10 Oct 14:47:40 - [info] [mosca in:c2c2553a.5302a8] Binding mosca mqtt server on port: 1884
TypeError: RED.require is not a function
at new TableNode (/Users/jps/.node-red/node_modules/node-red-node-ui-table/node.js:48:30)
at createNode (/usr/local/lib/node_modules/node-red/red/runtime/nodes/flows/Flow.js:305:18)
at Flow.start (/usr/local/lib/node_modules/node-red/red/runtime/nodes/flows/Flow.js:89:35)
Node-REDwipe/reinstall/restart 之后的输出
10 Oct 20:56:19 - [info] Node-RED version: v0.18.4
10 Oct 20:56:19 - [info] Node.js version: v8.12.0
10 Oct 20:56:19 - [info] Darwin 18.7.0 x64 LE
10 Oct 20:56:19 - [info] Loading palette nodes
...
10 Oct 21:00:53 - [info] Starting flows
TypeError: RED.require is not a function
at new TableNode (/Users/jps/.node-red/node_modules/node-red-node-ui-table/node.js:48:30)
at createNode (/usr/local/lib/node_modules/node-red/red/runtime/nodes/flows/Flow.js:305:18)
at Flow.start (/usr/local/lib/node_modules/node-red/red/runtime/nodes/flows/Flow.js:89:35)
at start (/usr/local/lib/node_modules/node-red/red/runtime/nodes/flows/index.js:307:29)
at /usr/local/lib/node_modules/node-red/red/runtime/nodes/flows/index.js:144:21
at tryCatchReject (/usr/local/lib/node_modules/node-red/node_modules/when/lib/makePromise.js:845:30)
at runContinuation1 (/usr/local/lib/node_modules/node-red/node_modules/when/lib/makePromise.js:804:4)
at Fulfilled.when (/usr/local/lib/node_modules/node-red/node_modules/when/lib/makePromise.js:592:4)
at Pending.run (/usr/local/lib/node_modules/node-red/node_modules/when/lib/makePromise.js:483:13)
at Scheduler._drain (/usr/local/lib/node_modules/node-red/node_modules/when/lib/Scheduler.js:62:19)
10 Oct 21:00:53 - [info] Started flows
10 Oct 21:01:21 - [info] Stopping flows
10 Oct 21:01:21 - [info] Stopped flows
仪表板上有一个空白页面和一条闪烁的连接丢失消息。
Node-RED 的版本 0.18.x 已经非常非常过时了。
最近发布了 1.0.1 版,您需要升级才能使 node-red-ui-node-table
正常工作。
仪表板版本也列在跟踪输出中,它是 2.8.2,这也很旧,当前是 2.17.1,您至少需要在 2.10.0 上才能支持额外的仪表板节点。
升级后,您还应该 运行 npm rebuild
在 /Users/jps/.node-red
中修复 homekit 节点跟踪中列出的问题。
不要通过 Manage Palette 添加额外的包,而是使用 IBM Cloud 工具链和 IBM Cloud 中的 git 存储库将以下包添加到 package.json。提交更改,IBM Cloud Continuous Delivery 工具链将构建和部署 Cloud Foundry 应用程序。
"node-red-node-ui-table":"0.x",
"node-red-dashboard":"2.x",