guidone / node-red-contrib-chatbot

Visually build a full featured chat bot for Telegram, Facebook Messenger, Whatsapp and Slack with Node-RED. Almost no coding skills required.
http://red-bot.io
930 stars 188 forks source link

install error on node red on pi #624

Open 19dexter86 opened 10 months ago

19dexter86 commented 10 months ago

i am trying to install chatbot on a node-red installation on a raspberry. unfortunately i get the following error:

2023-12-06T09:39:25.846Z Install : node-red-contrib-chatbot 1.2.4 2023-12-06T09:39:22.635Z [err] npm WARN config production Use ``--omit=dev`` instead. 2023-12-06T09:39:46.471Z [err] npm 2023-12-06T09:39:46.471Z [err] 2023-12-06T09:39:46.471Z [err] ERR! 2023-12-06T09:39:46.472Z [err] 2023-12-06T09:39:46.472Z [err] code 2023-12-06T09:39:46.472Z [err] EBADENGINE 2023-12-06T09:39:46.542Z rc=1

i am using: nodered 3.0.2

pi@raspberrypi:~ $ npm -v 8.19.4 pi@raspberrypi:~ $ nodejs -v v16.20.2

19dexter86 commented 10 months ago

i updated to node.js 20 and now i got [err] engine Unsupported engine

MrSiO commented 9 months ago

i updated to node.js 20 and now i got [err] engine Unsupported engine

Same issue when trying to install from "manage palette".

I'm running nodered latest Docker image.

Any known "fix" to get this to install?

npdgm commented 8 months ago

I'm running nodered latest Docker image.

Any known "fix" to get this to install?

You need to run Node-Red with Node.js version 18, not 16 or 20. There are container image tags to force node version. For example, change nodered/node-red:3.1.3 to nodered/node-red:3.1.3-18

MrSiO commented 8 months ago

You were right! Thx!

Only sad thing about defining a precise TAG is that since I'm not using the ":latest tag" anymore, watchtower won't be able to automatically upgrade this container. To your knowledge, is there a different "latest" TAG that could be specified to use Node.js version 18? That would be nice.

Thx for the fix !

On Fri, Jan 26, 2024 at 12:59 PM Thibault VINCENT @.***> wrote:

I'm running nodered latest Docker image.

Any known "fix" to get this to install?

You need to run Node-Red with Node.js version 18, not 16 or 20. There are container image tags to force node version. For example, change nodered/node-red:3.1.3 to nodered/node-red:3.1.3-18

— Reply to this email directly, view it on GitHub https://github.com/guidone/node-red-contrib-chatbot/issues/624#issuecomment-1912462812, or unsubscribe https://github.com/notifications/unsubscribe-auth/AL4PN4HQQXVU5L4MP6ZLIM3YQPVHBAVCNFSM6AAAAABAJDCCVSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSMJSGQ3DEOBRGI . You are receiving this because you commented.Message ID: @.***>

Tobsic commented 7 months ago

Only sad thing about defining a precise TAG is that since I'm not using the ":latest tag" anymore, watchtower won't be able to automatically upgrade this container.

@MrSiO in case you still need it, you can use nodered/node-red:latest-18

hryhorash commented 3 months ago

Hi! Is there a chance that Node.js 20 will be supported?