abreits / node-red-contrib-amqp

Node-RED AMQP input and output nodes
16 stars 18 forks source link

Unsupported engine for amqplib@0.4.2 #36

Open lombaardcj opened 3 years ago

lombaardcj commented 3 years ago

Error when trying to add npm package to latest version of node-red

sudo npm install -g node-red-contrib-amqp
npm WARN notsup Unsupported engine for amqplib@0.4.2: wanted: {"node":">=0.8 <6 || ^6"} (current: {"node":"12.19.1","npm":"6.14.8"})
npm WARN notsup Not compatible with your version of node/npm: amqplib@0.4.2
$ node --version
v12.19.1
$ npm --version
6.14.8
deschmih commented 3 years ago

Hey,

I have the same effect:

2020-11-27T14:51:51.897Z installieren : node-red-contrib-amqp 1.0.2

2020-11-27T14:51:51.942Z npm install --no-audit --no-update-notifier --no-fund --save --save-prefix=~ --production node-red-contrib-amqp@1.0.2
2020-11-27T14:51:56.581Z [err] npm
2020-11-27T14:51:56.582Z [err]  WARN notsup Unsupported engine for amqplib@0.4.2: wanted: {"node":">=0.8 <6 || ^6"} (current: {"node":"10.23.0","npm":"6.14.8"})
2020-11-27T14:51:56.582Z [err] npm
2020-11-27T14:51:56.582Z [err]  WARN
2020-11-27T14:51:56.582Z [err]  notsup
2020-11-27T14:51:56.582Z [err]  Not compatible with your version of node/npm: amqplib@0.4.2
2020-11-27T14:51:56.583Z [err] 
2020-11-27T14:51:56.587Z [out] + node-red-contrib-amqp@1.0.2
2020-11-27T14:51:56.587Z [out] added 22 packages from 60 contributors in 2.942s
2020-11-27T14:51:56.617Z rc=0 

I am doing the installation via node-red web-ui 'manage palette --> install'.

Version info: image

$ npm --version
6.14.8

Hints and ideas are welcome. Thanks

deschmih commented 3 years ago

duplicate https://github.com/abreits/node-red-contrib-amqp/issues/30#issuecomment-735637646

diecamdia commented 2 years ago

The issue is by the package amqp-ts have a dependency to package amqplib@0.4.2.