# How to install an OPC UA Node

**URL:** https://discourse.nodered.org/t/how-to-install-an-opc-ua-node/24824
**Category:** General
**Created:** [14 April 2020 15:51 UTC](https://discourse.nodered.org/t/how-to-install-an-opc-ua-node/24824 "2020-04-14T15:51:26Z")
**Posts on this page:** 7
**Page:** 1

<div class="post-metadata">

### Author: ![Tasty1](https://avatars.discourse-cdn.com/v4/letter/t/cab0a1/32.png) [@Tasty1](https://discourse.nodered.org/u/Tasty1)
#### Post date: [14 April 2020 15:51 UTC](https://discourse.nodered.org/t/how-to-install-an-opc-ua-node/24824/1 "2020-04-14T15:51:26Z")

</div>

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?

---

<div class="post-metadata">

### Author: ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)
#### Post date: [14 April 2020 21:38 UTC](https://discourse.nodered.org/t/how-to-install-an-opc-ua-node/24824/2 "2020-04-14T21:38:29Z")

</div>

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.

---

<div class="post-metadata">

### Author: ![Tasty1](https://avatars.discourse-cdn.com/v4/letter/t/cab0a1/32.png) [@Tasty1](https://discourse.nodered.org/u/Tasty1)
#### Post date: [15 April 2020 06:51 UTC](https://discourse.nodered.org/t/how-to-install-an-opc-ua-node/24824/3 "2020-04-15T06:51:01Z")

</div>

> [@Colin](#):
>
> npm cache clean --force

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

---

<div class="post-metadata">

### Author: ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)
#### Post date: [15 April 2020 07:21 UTC](https://discourse.nodered.org/t/how-to-install-an-opc-ua-node/24824/4 "2020-04-15T07:21:37Z")

</div>

What version of npm have you got? According to [https://docs.npmjs.com/cli/cache](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`

---

<div class="post-metadata">

### Author: ![Tasty1](https://avatars.discourse-cdn.com/v4/letter/t/cab0a1/32.png) [@Tasty1](https://discourse.nodered.org/u/Tasty1)
#### Post date: [16 April 2020 18:18 UTC](https://discourse.nodered.org/t/how-to-install-an-opc-ua-node/24824/5 "2020-04-16T18:18:07Z")

</div>

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

---

<div class="post-metadata">

### Author: ![dceejay](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/dceejay/32/38_2.png) [@dceejay](https://discourse.nodered.org/u/dceejay)
#### Post date: [16 April 2020 19:54 UTC](https://discourse.nodered.org/t/how-to-install-an-opc-ua-node/24824/6 "2020-04-16T19:54:01Z")

</div>

They are currently the best choices (imho).

---

<div class="post-metadata">

### Author: ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)
#### Post date: [30 April 2020 20:07 UTC](https://discourse.nodered.org/t/how-to-install-an-opc-ua-node/24824/7 "2020-04-30T20:07:04Z")

</div>

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