Troubleshooting
Why the iiot OPC UA Inject node shows blank on install
Short answer
The Inject node is blank because its browser-side editor script failed to register, not because the install failed; npm only copies files. Align the Node.js LTS line, the Node-RED release and the package release to the tested set, reload the editor without the cached palette script, and prove it with a label, a populated dialog and properties that survive a restart.

On this page
- Why is the IIoT OPC UA Inject node blank when the other package nodes render fine?
- Why do deleting the .node-red folder, rolling back to 2.7.1 and reinstalling change nothing?
- Which Node.js version does the package need on a Windows 7 PC?
- Which Node-RED and package releases match that Node.js?
- What does the failing version triple look like on paper?
- How do you prove the fault is in the editor half, not the runtime?
- How do you align the triple and reload the editor without the cached script?
- What proves the fix, and which trap brings the blank node back?
- Questions asked
A blank IIoT OPC UA Inject node means the node's editor half failed to register, not that the install failed. The package files are on disk, the runtime half loads, and npm reports success, but the browser-side script that supplies the label, the properties dialog and the defaults threw while registering. A dragged Inject therefore shows no text and an empty dialog while the package's other nodes look normal. Reinstalling changes nothing because the cause sits in the version triple underneath: the Node.js line, the Node-RED release and the package release. On a Windows 7 desktop the window is narrower still, because Node.js provides no Windows 7 compatibility on its current lines. Align the three versions, reload the editor without the cached palette script, and prove registration with the checks below.
Why is the IIoT OPC UA Inject node blank when the other package nodes render fine? #
The Inject is blank because its editor half failed to register: each node ships a runtime half that Node.js executes and an editor half that the browser executes, and only the editor half provides the label, the edit dialog and the default values.
Node-RED's node-authoring rule is the standard that decides this case: the type named in the node's html must match the type its runtime script passes to RED.nodes.registerType. When the editor script throws before that registration completes, the node type still appears on the palette but carries no label function, no dialog template and no defaults, which is exactly a blank node with an empty properties panel. Each node type in a package registers separately, so the package's other nodes can render normally while the Inject alone is empty.
The reported symptom pattern matches point for point: the flow imports, the Inject loses its properties, and a fresh Inject dragged from the palette shows no text and an empty dialog. A second report, on Node-RED 1.3.5 inside a 1.3.0 desktop wrapper, shows the same blank dialog, so the fault follows the environment rather than one PC.
Why do deleting the .node-red folder, rolling back to 2.7.1 and reinstalling change nothing? #
None of those moves touches the versions that decide the case: wiping the user directory, pinning the package to 2.7.1 and reinstalling all reload the same Node.js binary, the same Node-RED editor and, in an open tab, the same cached palette script.
The user directory holds flows, credentials and installed palette modules. Deleting it clears stale state, but the new install still runs on the same runtime and opens in the same browser, so the same script throws the same way. Rolling the package back fails for a second reason: the package's other nodes rendered correctly, which proves the module's files installed, so the blank Inject is a function of the environment, not of one package release.
The plain reinstall reports success because npm resolves dependencies and copies files; it never executes the editor script, so a green install proves file placement only. Audit warnings printed during that install are a separate matter, analyzed in why node-red-contrib-iiot-opcua installs with 3 npm vulnerabilities.
Which Node.js version does the package need on a Windows 7 PC? #
Install Node.js 10 LTS: the readme tests the package against the LTS line rather than the newest current release, a field report confirms the package working on that LTS release, and Windows 7 compatibility in Node.js ended after release 13.6.
The newest Node.js download is a current line, not an LTS line, and both the Node-RED documentation and the package readme point to LTS. The field report worth knowing: the package works on 10 LTS, while 12 was never tried, and unconfirmed is no basis for a commissioning PC. The Windows 7 constraint closes the window from above: an installer can still complete on an unsupported combination, which is how a PC ends up with a binary that starts but sits outside every tested envelope.
Decision for that desktop: Node.js 10 LTS, and nothing newer.
Which Node-RED and package releases match that Node.js? #
Pair that LTS with a Node-RED release from the 0.20.x line the readme names as tested, and take the package release contemporaneous with that pair; the current package release instead lists Node.js 14 or newer with Node-RED 3.0.2 or 2.2.3 as its supported set.
That supported set comes from the scorecard for package release 4.1.2, and it is the target on a current OS. On Windows 7 the arithmetic rules the current line out: the newest Node.js with Windows 7 compatibility is 13.6, the current package release needs 14 or newer, and 13.6 is less than 14, so the current line cannot be aligned on that OS. The same check explains the second report: Node-RED 1.3.5 sits one major line past the tested 0.20.x, outside the envelope the package was exercised in.
When a release note ties a package release to your Node-RED line, pin it instead of floating:
npm install node-red-contrib-iiot-opcua@2.7.1
The pinned version comes from that release note or readme statement, not from habit.
What does the failing version triple look like on paper? #
Here is an illustrative failing set, read with the commands in the next section: Node.js 13.8.0, Node-RED 1.3.5 and the current package release, a triple that misses the documented envelope in every place it is measured.
node -vprints v13.8.0. The Windows 7 cutoff is release 13.6; counting minor steps, 13.6 to 13.7 to 13.8 puts this binary two minor releases past the last compatible one, and 13.8 is a current line, not an LTS line. Two misses from one version.- The startup banner prints Node-RED 1.3.5 against the readme's tested 0.20.x line, one major line apart, since 1 minus 0 is 1. The editor script runs against an editor release the package was never exercised on. Third miss.
npm ls node-red-contrib-iiot-opcuaprints the current release, whose scorecard asks for Node.js 14 or newer, and the installed runtime is 13.8.0, which is less than 14. Fourth miss.
Verdict: zero of three versions inside the envelope. No reinstall of any single component fixes a set that is wrong in three places at once; align the triple first, then install once.
How do you prove the fault is in the editor half, not the runtime? #
A clean Node-RED startup log plus a script exception in the browser developer console is the signature: the runtime half loaded, and the registration failed in the editor, exactly where the label and dialog come from.
Take the readings in the shell that starts Node-RED:
node -v
npm -v
where node
npm ls node-red-contrib-iiot-opcua
- Node.js version:
node -vwhere Node-RED actually starts. An older copy earlier on PATH can serve Node-RED while another shell reports the new one;where nodeshows the resolution order. - Node-RED version: the startup banner, or the editor menu's About entry.
- Package version:
npm lsfrom the user directory confirms which release loaded and that no duplicate copy sits elsewhere. - Module state: the startup log and the palette's installed-modules list. A module marked disabled or errored is a runtime-side failure; a module listed clean with one blank node is editor-side.
- Editor errors: the browser developer console while the editor loads and while the Inject is dragged in. An exception at registration confirms the editor half.
- Wrapper: whether Node-RED runs as a service, inside a desktop wrapper, or as a plain
node-redcommand. A wrapper can embed its own Node.js, so a system runtime update changes nothing underneath it.
If the entire canvas is blank rather than one node, that is a different fault in the editor's own assets, covered in why the Node-RED editor canvas is blank after an update.
How do you align the triple and reload the editor without the cached script? #
Stop Node-RED, record the three readings, then change all three versions before installing anything once: an LTS Node.js the readme accepts, a Node-RED release inside the tested line, and the package release that matches them.
- Stop Node-RED and write down the three readings from the previous section; the failing set belongs in the commissioning record.
- Uninstall the current Node.js and install the LTS release chosen for your OS. Confirm with
node -vin the shell that will start Node-RED, andnpm -vfor the npm that shipped with it. - Install the Node-RED release that matches the readme's tested line for the package release you will pin, using that npm.
- Start Node-RED once so it recreates the user directory, then stop it.
- From the user directory, install the package, pinned to the release your Node-RED line calls for.
- Start Node-RED and open the editor in a private browser window, or hard-refresh the existing tab, so a cached palette script is not reused.
- Import the flow only after the palette shows the Inject with its label and a populated dialog.
If the machine runs a desktop wrapper, check which Node.js it embeds before anything else: a wrapper that carries its own runtime ignores the system install. Test once with a plain node-red launch from the shell to separate wrapper behavior from package behavior.
What proves the fix, and which trap brings the blank node back? #
The fix is proven when a fresh Inject shows its label, opens a populated dialog, logs no console exception, and keeps its properties through Deploy, a page reload and a full Node-RED restart, which no cached state survives.
Proof, in order:
- Drag a new Inject from the palette: label visible, dialog populated on double-click.
- Developer console clean while the editor loads and while the node is added.
- Re-import the flow; the Inject keeps its properties after Deploy and a reload.
- Trigger the Inject against the OPC UA server and confirm a value on a debug node from the read path. If the node renders but the read fails while a generic UA client connects, the fault has moved to the connection layer, the case covered in troubleshooting Node-RED OPC UA when UaExpert connects.
- Restart the Node-RED process and check again; a property that survives a restart rules out cached editor state.
Traps that undo the fix on the next PC:
- Newest is not LTS. The latest Node.js download is a current line, and a laptop that works on a newer build predicts nothing about the target.
- Two Node.js installs. An older copy earlier on PATH serves Node-RED while
node -velsewhere reports the new one. - Stale flow exports. An export saved while the node was broken stores empty properties and re-imports the blanks.
- Browser cache. The editor caches palette scripts, so a fixed server with an old tab still looks broken.
- Fleet drift. Record the working triple and install exactly that set on every commissioning PC.
The decision for each machine:
- The working Windows 10 laptop: freeze its triple and record the three versions before any upgrade.
- The Windows 7 desktop: run the old reported triple, prove it with the list above, and keep that host off the plant network or behind the OT firewall while it runs an out-of-support runtime line.
- A new commissioning host on a current OS: the current package release with an LTS Node.js inside the scorecard's supported set; if that host is an IOT2050 edge box, follow the documented order in updating Node-RED, Node.js and npm on an IOT2050.
- A wrapper install: verify the embedded runtime first, or switch to Node-RED as a plain service on the system runtime.
Questions asked
Does an npm audit warning during the install cause the blank Inject node?
No. Audit output lists known vulnerabilities in the dependency tree and plays no part in editor registration, so a package can install with warnings and still render every node correctly. Handle the audit as its own maintenance task on the versions you pin, and re-run it after the alignment, because changing the package release changes the dependency tree it reports on.
Can I reuse the flow I exported while the Inject node was broken?
Only as a wiring reference. An export saved while the node failed stores the Inject with empty properties, so importing it after the fix brings the blanks straight back. Rebuild the Inject from the palette and re-enter its fields, or import an export saved on a machine where the node rendered correctly, then deploy and confirm the values survive a restart.
The whole editor canvas is blank, not just the Inject node, so is it the same fault?
No. A completely blank canvas points at the editor's own web assets after an update or at a blocked script load, while this fault leaves the rest of the palette rendering and empties one node type. If every node renders except the Inject, stay on the version-alignment path; if nothing renders at all, troubleshoot the editor installation itself first.
Is Windows 7 still a workable host for this package?
Only on the old triple. The current package release lists Node.js 14 or newer as supported, and Node.js provides no Windows 7 compatibility past 13.6, so that PC is frozen on versions that will never move forward to the current line. Run it as a stopgap behind the OT firewall and plan to move the flow to a supported OS at the next shutdown window.


