How to install an OPC UA Node

Hi I am new and I've Trouble with the Installation of the OPC UA node on my Laptop (Windows 10)

I recieve this message:

C:\Users****>npm install node-red-contrib-opcua
npm ERR! Unexpected end of JSON input while parsing near '...0.0.17","node-opcua-s'

npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users****\AppData\Roaming\npm-cache_logs\2020-04-14T15_48_56_711Z-debug.log

can somebody help me with this Problem?

Does that still happen if you try again (it might have been a network problem).
Otherwise all I can think of is that the npm cache is corrupted, though that is very unusual. If trying again fails the same way then run
npm cache clean --force
and try again.

Thank you very much!
now I have installed it!!

1 Like

What version of npm have you got? According to https://docs.npmjs.com/cli/cache it is supposed to be not possible to get corrupted data in the cache. To find out run
npm -v
also of interest might be
node -v

My npm version is: 6.14.4
and my Node Version is: v12.16.2
What would you recomand me?
Thanks

They are currently the best choices (imho).

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.