# Node-red-contrib-pcap installation failed

**URL:** https://discourse.nodered.org/t/node-red-contrib-pcap-installation-failed/35368
**Category:** General
**Created:** [5 November 2020 11:02 UTC](https://discourse.nodered.org/t/node-red-contrib-pcap-installation-failed/35368 "2020-11-05T11:02:53Z")
**Posts on this page:** 7
**Page:** 1

<div class="post-metadata">

### Author: ![rparada](https://avatars.discourse-cdn.com/v4/letter/r/73ab20/32.png) [@rparada](https://discourse.nodered.org/u/rparada)
#### Post date: [5 November 2020 11:02 UTC](https://discourse.nodered.org/t/node-red-contrib-pcap-installation-failed/35368/1 "2020-11-05T11:02:53Z")

</div>

Hi,

I've tried to install the node pcap " node-red-contrib-pcap" from node-red (palette) but installation fails. Then, I've installed it following the github steps through terminal. Still, I cannot see the pcap node in my node-red environment. Did someone install this node successfully? thanks

---

<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: [5 November 2020 12:01 UTC](https://discourse.nodered.org/t/node-red-contrib-pcap-installation-failed/35368/2 "2020-11-05T12:01:25Z")

</div>

What do you see if, in a terminal, you run  
`npm install node-red-contrib-pcap`  
Since you have made some attempts to install it by various routes remove it first in case it is half installed  
`npm remove node-red-contrib-pcap`

---

<div class="post-metadata">

### Author: ![rparada](https://avatars.discourse-cdn.com/v4/letter/r/73ab20/32.png) [@rparada](https://discourse.nodered.org/u/rparada)
#### Post date: [5 November 2020 12:07 UTC](https://discourse.nodered.org/t/node-red-contrib-pcap-installation-failed/35368/3 "2020-11-05T12:07:07Z")

</div>

I've removed it and installed again. I get this error:

 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/a/0/a00f5fa7fccacd99aba2e144b0da071b50856037.png)

---

<div class="post-metadata">

### Author: ![rparada](https://avatars.discourse-cdn.com/v4/letter/r/73ab20/32.png) [@rparada](https://discourse.nodered.org/u/rparada)
#### Post date: [5 November 2020 12:14 UTC](https://discourse.nodered.org/t/node-red-contrib-pcap-installation-failed/35368/4 "2020-11-05T12:14:34Z")

</div>

I've inserted the "package.json" from the Git to that directory and I get this error now:

 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/8/2/828b8892bdb4c0b6e174d85ea02694b5622a6802.png)

---

<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: [5 November 2020 13:44 UTC](https://discourse.nodered.org/t/node-red-contrib-pcap-installation-failed/35368/5 "2020-11-05T13:44:20Z")

</div>

Sorry, I assumed you knew, since you have been installing from the command line already, but you have to go into your `.node-red` folder before running npm.  
You can remove the folder you have created `/home/rparada/node_modules` but it doesn't matter if you leave it, it won't be used.

Please copy/paste logs rather than screenshots. Use the `</>` button at the top of the forum entry window when pasting in.

---

<div class="post-metadata">

### Author: ![rparada](https://avatars.discourse-cdn.com/v4/letter/r/73ab20/32.png) [@rparada](https://discourse.nodered.org/u/rparada)
#### Post date: [5 November 2020 16:04 UTC](https://discourse.nodered.org/t/node-red-contrib-pcap-installation-failed/35368/7 "2020-11-05T16:04:53Z")

</div>

SOLVED: I had to install also pcap2 `sudo npm i pcap2`. Remember to disable and enable the module pcap2 at the Palette from the GUI Node-Red browser

---

<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: [19 November 2020 16:04 UTC](https://discourse.nodered.org/t/node-red-contrib-pcap-installation-failed/35368/8 "2020-11-19T16:04:55Z")

</div>

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