Skip to content

EBADENGINE Error because of wrong Version of rpm? #182

@twitnic

Description

@twitnic

Hey,

I have installed:

pi@pi3:~/.node-red/node_modules/particle-api-js $ npm -v
10.3.0

And a NodeRed installation.
I try to install the https://flows.nodered.org/node/node-red-contrib-nspanel-lui package.

the I get the error:

2024-01-21T00:26:44.201Z npm install --no-audit --no-update-notifier --no-fund --save --save-prefix=~ --production --engine-strict node-red-contrib-nspanel-lui@0.0.1-alpha.51
2024-01-21T00:26:45.803Z [err] npm
2024-01-21T00:26:45.805Z [err]  WARN
2024-01-21T00:26:45.805Z [err]  config production Use `--omit=dev` instead.
2024-01-21T00:26:59.811Z [err] npm ERR! code EBADENGINE
2024-01-21T00:26:59.824Z [err] npm ERR! engine Unsupported engine
2024-01-21T00:26:59.824Z [err] npm ERR! 
2024-01-21T00:26:59.826Z [err] engine Not compatible with your version of node/npm: particle-api-js@10.4.2
2024-01-21T00:26:59.826Z [err] npm ERR! notsup Not compatible with your version of node/npm: particle-api-js@10.4.2
2024-01-21T00:26:59.826Z [err] npm ERR! 
2024-01-21T00:26:59.827Z [err] notsup Required: {"node":">=12.x","npm":"8.x"}
2024-01-21T00:26:59.827Z [err] npm ERR! notsup Actual:   {"npm":"10.3.0","node":"v20.5.1"}
2024-01-21T00:26:59.841Z [err] 
2024-01-21T00:26:59.842Z [err] npm 
2024-01-21T00:26:59.842Z [err] ERR! A complete log of this run can be found in: /home/pi/.npm/_logs/2024-01-21T00_26_45_582Z-debug-0.log
2024-01-21T00:26:59.881Z rc=1

My npm and my node version are higher then the required.
But your npm version is hard set to 8. not ">=8.0" like node version.

And directy via cli:

pi@pi3:~/.node-red/node_modules $ npm update particle-api-js
npm WARN EBADENGINE Unsupported engine {
npm WARN EBADENGINE   package: 'particle-api-js@10.4.2',
npm WARN EBADENGINE   required: { node: '>=12.x', npm: '8.x' },
npm WARN EBADENGINE   current: { node: 'v20.5.1', npm: '10.3.0' }
npm WARN EBADENGINE }

Is it possible to change the version of npm?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions