I updated node-red to version 4.1.10 and node-red-contrib-opcua to 0.2.351 and now opcua is not working anymore → unknown OpcUA-Client
Please help me to solve this problem my complete data-grabbing enviroment is not working anymore.
if I run manually npm install node-red-contrib-opcua the following output ist comming:
npm warn deprecated glob@9.3.5: Old versions of glob are not supported, and contain widely publicized security vulnerabilities, which have been fixed in the current version. Please update. Support for old versions may be purchased (at exorbitant rates) by contacting i@izs.me
added 348 packages, removed 5 packages, changed 18 packages, and audited 571 packages in 13s
36 packages are looking for funding
run npm fund for details
12 vulnerabilities (8 moderate, 4 high)
To address all issues, run:
npm audit fix
Run npm audit for details.
So I tried npm audit fix but nothing changed so I tried npm audit fix --force → it solved the vulnerabilities but opcua is also not working.
That is just a warning, it is not relavent in this case.
NEVER run npm audit fix and especially not with the --force parameter, it WILL break things.
Stop Node-RED and from the command line:
cd ~/.node-red
rm -R ./node_modules
npm install
Then restart node-red and hope that it fixes the problem.
The folder contains all of the Node.js packages, it is fine to delete it as long as you then run npm install which will reinstall everything.
I tried your approach
npm install
npm warn deprecated node-opcua-client-crawler@2.127.1: true
npm warn deprecated node-red-dashboard@3.6.6: No longer maintained - please look at alternatives such as @flowfuse/node-red-dashboard or node-red-contrib-uibuilder
added 692 packages, and audited 693 packages in 9s
83 packages are looking for funding
run npm fund for details
29 vulnerabilities (1 low, 13 moderate, 14 high, 1 critical)
To address issues that do not require attention, run:
npm audit fix
To address all issues (including breaking changes), run:
npm audit fix --force
Run npm audit for details.
It's the same again → unknown OpcUa-Client
I have uninstalled node-red-contrib-opcua and then installed it new → and now everything ist working again
Thanks for help.