I have a dependency in my package.json
which itself has the following dependency:
"node-rdkafka": "^2.5.0",
Using nvm
on my local machine and setting my node version to 8.9.1
, and my npm
version is 5.5.1
, I can successfully run
npm install [email protected]
But when running the same thing (i.e npm install
) from within my docker image:
FROM node:10.13.0-alpine
or FROM node:8.9.1-alpine
I get the following error:
npm ERR! notsup Unsupported engine for [email protected]: wanted: {"node":">=12.0.0"} (current: {"node":"10.13.0","npm":"6.4.1"})
npm ERR! notsup Not compatible with your version of node/npm: [email protected]
npm ERR! notsup Not compatible with your version of node/npm: [email protected]
npm ERR! notsup Required: {"node":">=12.0.0"}
npm ERR! notsup Actual: {"npm":"6.4.1","node":"10.13.0"}
Any ideas about this inconsistency?
I clearly dont need a node version this high. But it says I do.
FROM node:10.13.0 RUN npm install [email protected]
) builds correctly for me, granted i don't use alpine because rdkafka required python executable and some other stuff i don't want to deal with settting up... could you provide entirepackage.json
andDockerfile
? – ArcheologyFROM node:10.13.0
– Rurikengine-strict=true
in.npmrc
file – Rurik