简体   繁体   English

npm WARN EBADENGINE 不支持的引擎 { npm WARN EBADENGINE 包:'amqplib@0.4.2',

[英]npm WARN EBADENGINE Unsupported engine { npm WARN EBADENGINE package: 'amqplib@0.4.2',

I am trying to install node-red-contrib-amqp-ack package in a Google Cloud Server.我正在尝试在 Google 云服务器中安装 node-red-contrib-amqp-ack 包。 The thing is I am using the node version v16.15.0 and npm version 8.5.5 and it gives me the following error I think due to this versions being too new.问题是我使用的是节点版本 v16.15.0 和 npm 版本 8.5.5,它给了我以下错误,我认为是因为这个版本太新了。

npm WARN EBADENGINE Unsupported engine {
npm WARN EBADENGINE   package: 'amqplib@0.4.2',
npm WARN EBADENGINE   required: { node: '>=0.8 <6 || ^6' },
npm WARN EBADENGINE   current: { node: 'v16.15.0', npm: '8.5.5' }
npm WARN EBADENGINE }

I tried installing an older version of node (v6.0.0 and also tried with the v5.9.0) and npm but then node-red doesn't work.我尝试安装旧版本的节点(v6.0.0 并尝试使用 v5.9.0)和 npm,但随后 node-red 不起作用。 Does anybody know a solution to this?有谁知道解决这个问题?

ps.I am using Debian 11 on the server. ps.我在服务器上使用 Debian 11。

我通过使用将我的 node.red 版本降级到 1.1.1 解决了这个问题

sudo npm install -g --unsafe-perm node-red@1.1.1

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM