Is saw https://discourse.nodered.org/t/examples-for-node-red-node-ui-table/14256.
and tried the code snippet mentioned @ 14/51.
It didn’t work on IBM Cloud and on my Mac, although I could install the node. No messages in debug nor log (locally).
I wonder if there any pre-reqs, working examples?
Edit after installing installing latest dashboard on local machine:
$ 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)
Output after wipe/reinstall/restart of Node-RED
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
On the dashboard there’s an empty page and a Connection lost message flashing.
2
Answers
Version 0.18.x of Node-RED is VERY VERY out of date.
Version 1.0.1 was recently released, you will need to upgrade for the
node-red-ui-node-table
to work.The dashboard version is also listed in the trace ouput, it’s 2.8.2, this is also very old, the current is 2.17.1 and you need to be on at least 2.10.0 to support extra dashboard nodes.
After upgrading you should also run
npm rebuild
in/Users/jps/.node-red
to fix the issues listed in the trace with the homekit nodes.Instead of adding the additional packages via Manage Palette, use the IBM Cloud Toolchain and the git repository in IBM Cloud to add the following packages to the package.json. Commit the change, and the IBM Cloud Continuous Delivery toolchain will build and deploy the Cloud Foundry application.