# Impossible to install node modules (such as node-red-node-mysql

**URL:** <https://discourse.nodered.org/t/impossible-to-install-node-modules-such-as-node-red-node-mysql/17818>\
**Category:** General\
**Created:** [12 November 2019 04:26 UTC](https://discourse.nodered.org/t/impossible-to-install-node-modules-such-as-node-red-node-mysql/17818 "2019-11-12T04:26:56Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![971JMD](https://avatars.discourse-cdn.com/v4/letter/9/b77776/32.png) [@971JMD](https://discourse.nodered.org/u/971JMD)\
**Post date:** [12 November 2019 04:26 UTC](https://discourse.nodered.org/t/impossible-to-install-node-modules-such-as-node-red-node-mysql/17818/1 "2019-11-12T04:26:57Z")

</div>

bonjour

impossible to install node modules (such as node-red-node-mysql  
pi@raspberrypi:~ $ node -v  
v12.13.0

pi@raspberrypi:~ $ uname -m  
armv7l

```auto
pi@raspberrypi:~ $ npm install node-red-node-mysql
npm ERR! code EAI_AGAIN
npm ERR! errno EAI_AGAIN
npm ERR! request to https://registry.npmjs.org/node-red-node-mysql failed, reason: getaddrinfo EAI_AGAIN registry.npmjs.org

npm ERR! A complete log of this run can be found in:
npm ERR! /home/pi/.npm/_logs/2019-11-12T04_20_32_685Z-debug.log
pi@raspberrypi:~ $ npm install node-red-node-mysql
npm ERR! code EAI_AGAIN
npm ERR! errno EAI_AGAIN
npm ERR! request to https://registry.npmjs.org/node-red-node-mysql failed, reason: getaddrinfo EAI_AGAIN registry.npmjs.org

npm ERR! A complete log of this run can be found in:
npm ERR! /home/pi/.npm/_logs/2019-11-12T04_21_38_297Z-debug.log

```

Thank you for your help

---

<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:** [12 November 2019 04:35 UTC](https://discourse.nodered.org/t/impossible-to-install-node-modules-such-as-node-red-node-mysql/17818/2 "2019-11-12T04:35:32Z")

</div>

Typically this is a network issue. Your computer can't see the internet. Eg DNS not working or bad proxy settings

---

<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:** [12 November 2019 09:08 UTC](https://discourse.nodered.org/t/impossible-to-install-node-modules-such-as-node-red-node-mysql/17818/3 "2019-11-12T09:08:06Z")

</div>

Also don't run `npm install` from the home folder, run it from the `.node-red` folder. This is not the cause of the network problem though.

---

<div class="post-metadata">

**Author:** ![971JMD](https://avatars.discourse-cdn.com/v4/letter/9/b77776/32.png) [@971JMD](https://discourse.nodered.org/u/971JMD)\
**Post date:** [12 November 2019 12:29 UTC](https://discourse.nodered.org/t/impossible-to-install-node-modules-such-as-node-red-node-mysql/17818/4 "2019-11-12T12:29:07Z")

</div>

bonjour.

I change the DNS and it still does not work

 ![mysql01](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/2X/a/a8658ba9bddeb1e9e4c8f400162494d870f98f91.jpeg)

---

<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:** [12 November 2019 12:45 UTC](https://discourse.nodered.org/t/impossible-to-install-node-modules-such-as-node-red-node-mysql/17818/5 "2019-11-12T12:45:27Z")

</div>

Try from the terminal as you did before, but from the .node-red folder. It may be that it is confused by the earlier failure so remove it first then install it again.

```auto
npm remove node-red-node-sqlite
npm install node-red-node-sqlite

```

Then if no errors restart node-red. If errors during the install post it here.

---

<div class="post-metadata">

**Author:** ![971JMD](https://avatars.discourse-cdn.com/v4/letter/9/b77776/32.png) [@971JMD](https://discourse.nodered.org/u/971JMD)\
**Post date:** [13 November 2019 14:59 UTC](https://discourse.nodered.org/t/impossible-to-install-node-modules-such-as-node-red-node-mysql/17818/6 "2019-11-13T14:59:27Z")

</div>

salut

I reinstalled everything

```auto
bash <(curl -sL https://raw.githubusercontent.com/node-red/linux-installers/master/deb/update-nodejs-and-nodered)

```

and for the moment everything seems to work

big thank you
