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

bonjour

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

pi@raspberrypi:~ $ uname -m
armv7l

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

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

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.

bonjour.

I change the DNS and it still does not work

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.

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.

salut

I reinstalled everything

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

1 Like