# How to install a Amazon Dash Button node?

**URL:** https://discourse.nodered.org/t/how-to-install-a-amazon-dash-button-node/4761
**Category:** General
**Created:** [10 November 2018 22:40 UTC](https://discourse.nodered.org/t/how-to-install-a-amazon-dash-button-node/4761 "2018-11-10T22:40:32Z")
**Posts on this page:** 12
**Page:** 1

<div class="post-metadata">

### Author: ![Flixm](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/flixm/32/17122_2.png) [@Flixm](https://discourse.nodered.org/u/Flixm)
#### Post date: [10 November 2018 22:40 UTC](https://discourse.nodered.org/t/how-to-install-a-amazon-dash-button-node/4761/1 "2018-11-10T22:40:32Z")

</div>

hi,

the whole evening i tried to install one of the two dash-button nodes. The problem is that on both available nodes i need to install other things before which won´t work ...

first is:

npm -g install node-red-contrib-mydash

```auto
### requires tcpdump and expect to be installed on the system
apt-get install expect tcl8.6 tcpdump
pacman -S expect tcpdump

```

this installation ends with a message that the package can not be found

the other one is:

npm install node-red-contrib-amazondash

```auto
# dependancy on libpcap for reading packets
$ sudo apt-get install libpcap-dev
npm install node-red-contrib-amazondash

```

... the same like the first node

... i don´t know why but the installation won´t work.  
do i need to do something special ? My nodered runs on a RPi Rasbian.

thanks in advance

---

<div class="post-metadata">

### Author: ![zenofmud](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/zenofmud/32/316_2.png) [@zenofmud](https://discourse.nodered.org/u/zenofmud)
#### Post date: [10 November 2018 22:58 UTC](https://discourse.nodered.org/t/how-to-install-a-amazon-dash-button-node/4761/2 "2018-11-10T22:58:57Z")

</div>

> [@Flixm](#):
>
> ```auto
> ### requires tcpdump and expect to be installed on the system
> apt-get install expect tcl8.6 tcpdump
> pacman -S expect tcpdump
> 
> ```

Did you try doing what it said to do and running those two commands?

---

<div class="post-metadata">

### Author: ![Flixm](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/flixm/32/17122_2.png) [@Flixm](https://discourse.nodered.org/u/Flixm)
#### Post date: [11 November 2018 08:02 UTC](https://discourse.nodered.org/t/how-to-install-a-amazon-dash-button-node/4761/3 "2018-11-11T08:02:17Z")

</div>

Yes of course. But both Shows me at the end that the package of those additional things cannot be found at E:/

---

<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: [11 November 2018 08:50 UTC](https://discourse.nodered.org/t/how-to-install-a-amazon-dash-button-node/4761/4 "2018-11-11T08:50:38Z")

</div>

Where are you running the command ? E: sounds like a windows disk ? You should be running it on the pi. Just run the apt ones. Pacman is for a different version of Linux. You'll probably need sudo apt-get ...

---

<div class="post-metadata">

### Author: ![Flixm](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/flixm/32/17122_2.png) [@Flixm](https://discourse.nodered.org/u/Flixm)
#### Post date: [11 November 2018 16:23 UTC](https://discourse.nodered.org/t/how-to-install-a-amazon-dash-button-node/4761/5 "2018-11-11T16:23:51Z")

</div>

That´s the responce when i use sudo in front of ...

~ $ sudo apt-get install expect tcl8.6 tcpdump  
Paketlisten werden gelesen... Fertig  
Abhängigkeitsbaum wird aufgebaut.  
Statusinformationen werden eingelesen.... Fertig  
Paket tcl8.6 ist nicht verfügbar, wird aber von einem anderen Paket  
referenziert. Das kann heißen, dass das Paket fehlt, dass es abgelöst  
wurde oder nur aus einer anderen Quelle verfügbar ist.  
Doch die folgenden Pakete ersetzen es:  
libtcl8.6

E: Paket expect kann nicht gefunden werden.  
E: Für Paket »tcl8.6« existiert kein Installationskandidat.  
E: Paket tcpdump kann nicht gefunden werden.

---

<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: [11 November 2018 16:42 UTC](https://discourse.nodered.org/t/how-to-install-a-amazon-dash-button-node/4761/6 "2018-11-11T16:42:41Z")

</div>

> [@Flixm](#):
>
> Doch die folgenden Pakete ersetzen es:  
> libtcl8.6

Did you try that suggestion?

Colin

---

<div class="post-metadata">

### Author: ![Flixm](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/flixm/32/17122_2.png) [@Flixm](https://discourse.nodered.org/u/Flixm)
#### Post date: [11 November 2018 17:57 UTC](https://discourse.nodered.org/t/how-to-install-a-amazon-dash-button-node/4761/7 "2018-11-11T17:57:47Z")

</div>

i tried but ...

~ $ sudo apt-get install libtcl8.6  
Paketlisten werden gelesen... Fertig  
Abhängigkeitsbaum wird aufgebaut.  
Statusinformationen werden eingelesen.... Fertig  
libtcl8.6 ist schon die neueste Version (8.6.6+dfsg-1).  
libtcl8.6 wurde als manuell installiert festgelegt.  
Die folgenden Pakete wurden automatisch installiert und werden nicht mehr benötigt:  
lxkeymap python-cairo python-gobject python-gobject-2 python-gtk2  
python-xklavier  
Verwenden Sie »sudo apt autoremove«, um sie zu entfernen.  
0 aktualisiert, 0 neu installiert, 0 zu entfernen und 4 nicht aktualisiert.

then i want to install the node:

~ $ sudo npm install node-red-contrib-mydash  
npm WARN saveError ENOENT: no such file or directory, open '/home/pi/package.json'  
npm WARN enoent ENOENT: no such file or directory, open '/home/pi/package.json'  
npm WARN pi No description  
npm WARN pi No repository field.  
npm WARN pi No README data  
npm WARN pi No license field.

- node-red-contrib-mydash@1.0.0  
added 1 package in 3.063s

after that i checked if there´s a node red update and start that ...

now it´s strange the "manage pallet" shows me that the mydash-node is installed but it is not in the list.

---

<div class="post-metadata">

### Author: ![Flixm](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/flixm/32/17122_2.png) [@Flixm](https://discourse.nodered.org/u/Flixm)
#### Post date: [11 November 2018 18:40 UTC](https://discourse.nodered.org/t/how-to-install-a-amazon-dash-button-node/4761/8 "2018-11-11T18:40:28Z")

</div>

so ... after update npm i -g npm i cannot reach node red at the local ip 😕

i think i need to rebuild the installation. what is the easiest way to uninstall an install node-red on a raspian ?

---

<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: [11 November 2018 18:58 UTC](https://discourse.nodered.org/t/how-to-install-a-amazon-dash-button-node/4761/9 "2018-11-11T18:58:09Z")

</div>

Rename your .node-red folder and run the bash \<(curl script again. That will reset most stuff. If you have installed any additional nodes globally (which is not normal) then uninstall them.

---

<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: [11 November 2018 20:38 UTC](https://discourse.nodered.org/t/how-to-install-a-amazon-dash-button-node/4761/10 "2018-11-11T20:38:37Z")

</div>

I would be a bit concerned about node-red-contrib-mydash. It hasn't had an update in two years and there isn't a link to the source on npmjs.

---

<div class="post-metadata">

### Author: ![Flixm](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/flixm/32/17122_2.png) [@Flixm](https://discourse.nodered.org/u/Flixm)
#### Post date: [12 November 2018 06:06 UTC](https://discourse.nodered.org/t/how-to-install-a-amazon-dash-button-node/4761/11 "2018-11-12T06:06:48Z")

</div>

Hi, rename the folder and run the bash script works ... So now I need to search for another solution to use the Amazon dash button.  
I saw that there's another way. This uses the UDP node to listen on Port 67 ... But there it shows me that I need root. How can I use/solve that?

---

<div class="post-metadata">

### Author: ![Flixm](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/flixm/32/17122_2.png) [@Flixm](https://discourse.nodered.org/u/Flixm)
#### Post date: [14 November 2018 21:00 UTC](https://discourse.nodered.org/t/how-to-install-a-amazon-dash-button-node/4761/12 "2018-11-14T21:00:00Z")

</div>

ahhh ... i found the problem ! after i do a sudo update it´s possible to install everything recomended for the amazon dash node.  
It works !!!! thanks a lot to

> **[node-red-contrib-amazondash](https://www.npmjs.com/package/node-red-contrib-amazondash)**
>
> A Node-RED node for listening to Amazon Dash button presses
