Troubleshooting
Unknown OpcUA-Client node after a Node-RED update
Short answer
The unknown OpcUA-Client message is a node-type registration failure after an update, not an OPC UA endpoint or tag fault. Stop Node-RED, uninstall and reinstall node-red-contrib-opcua in the runtime's user directory, then restart. npm audit fix never restores the node.

On this page
The unknown OpcUA-Client label after an update means Node-RED failed to load and register the node type from the node-red-contrib-opcua package — the flow still references the identifier, but the runtime never loaded it. It is not an OPC UA endpoint, session or tag fault. The fix that works: stop Node-RED, uninstall and reinstall node-red-contrib-opcua from the runtime's user directory, and restart. Working through npm audit fix or npm audit fix --force does not restore the node — on the reported case it cleared vulnerability counts and left the node unknown.
What the unknown label actually means #
Node-RED loads node types from installed packages when its runtime starts. A flow stores node types by identifier, and when the running instance cannot load that identifier from any installed package, the editor shows the node as unknown. That failure happens before any OPC UA work: no client session, no browse, no value exchange. It is the same loading layer as a Node-RED crash after installing nodes, just not severe enough to stop the runtime.
This puts the fault one layer below connection problems. If the node were recognized but could not connect, you would be looking at the client configuration, the server and the network — the territory of an OPC UA endpoint description mismatch. Here the client never starts.
Sort the symptom into the right layer #
Before changing anything, match what you see to the layer that owns it:
- Unknown OpcUA-Client in the editor after an update — the package did not register its node type; fix the installation, not the OPC UA settings.
- Node recognized, but connection or read errors — the package loaded; investigate the endpoint, server, network and security configuration.
- Communication works but values are wrong or missing — trace flow wiring and tag mapping; this was never an unknown-node problem.
The reported failure followed an update to Node-RED 4.1.10 and node-red-contrib-opcua 0.2.351. A manual npm install reported a deprecated glob version 9.3.5 warning and 12 vulnerabilities, but those messages report dependency maintenance status; none of them explains an unregistered node type.
Fix it: targeted package reinstall #
- Stop the Node-RED runtime that runs the affected flows. Package changes made while it runs are not loaded, so a restart alone is part of the repair, not an afterthought.
- Change to the user directory the runtime actually uses — the directory holding package.json and node_modules. On a typical Linux install that is ~/.node-red; a service or container deployment may point elsewhere.
- Uninstall the contribution:
npm uninstall node-red-contrib-opcua - Install it again from the same directory:
npm install node-red-contrib-opcua— expect the deprecation and vulnerability output again; it is unrelated. - Start Node-RED and open the affected flow. The client node should now render recognized instead of unknown.
- If it is still unknown, you repaired the wrong installation: confirm which user directory this runtime loads, and repeat steps 1 through 5 there.
The targeted reinstall changes one package and succeeded on the reported case. It is preferred over the broader rebuild below for exactly that reason.
If the targeted reinstall fails: rebuild the user directory #
When the reinstall does not restore the node, or several unrelated node types also show as unknown, rebuild every dependency in the user directory:
- Stop Node-RED.
- Change to the confirmed user directory.
- Remove that directory's node_modules folder.
- Run
npm installthere so npm reinstalls everything package.json records. - Restart Node-RED and check the flow again.
This rebuild touches every installed contribution, so have a recovery path if the install fails — a copy of the directory before you delete node_modules is enough.
Keep the audit command out of the diagnosis #
Running npm audit fix changed nothing on the reported case, and npm audit fix --force resolved the reported vulnerabilities while the OPC UA node stayed unknown. Force-fixing can also apply breaking dependency changes across the whole user directory, turning one missing node into several. Treat vulnerability counts as a separate maintenance task on its own change window; never as a substitute for repairing a missing node type. A full npm update that goes wrong at the same layer is covered in the article on Node-RED failing to start after an npm update.
Verify the repair in the running flow #
A recognized node proves the package loaded — nothing more. Then:
- Deploy the flow and watch the client node's status for connection behavior.
- Read one known tag from the server and confirm the expected value and timestamp reach the downstream logic or display.
If the connection stage now fails instead, the package repair is done and you are into client and server configuration. When the machine's edge box or data-collection host is the piece being replaced rather than repaired, a fanless mini PC takes over that role.
More background on the update path itself is in the knowledge-base fix for a node-red-contrib-opcua npm update that does not work.
Questions asked
Should I run npm audit fix --force for an unknown OpcUA-Client node?
No. On the reported case, npm audit fix changed nothing and npm audit fix --force cleared the reported vulnerabilities but left the OPC UA node unknown. Reinstall node-red-contrib-opcua with the runtime stopped instead.
How do I know if the OPC UA server is the problem?
It is not, while the node is unknown. The runtime has not loaded the node type at all, so no session, browse or read request is reaching the server. Resolve the package installation first; only if the node becomes recognized and then cannot connect should you check the endpoint URL, network path and security policy.
What if reinstalling node-red-contrib-opcua does not fix it?
Rebuild every package in the user directory: stop Node-RED, change to that directory, remove its node_modules folder, run npm install there to reinstall what package.json records, and restart. This affects all installed nodes, not just the OPC UA contribution, so use it only after the targeted reinstall fails and you can recover if the install fails.
Where is the Node-RED user directory?
It is the directory that holds package.json and node_modules for the running instance. On a typical Linux installation it is ~/.node-red, but a service or container deployment can point elsewhere. Confirm the directory the runtime actually uses before running any npm command, or you will repair the wrong installation.

