Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

engine Not compatible with your version of node/npm: [email protected] #14

Open
alexjamesbrown opened this issue Sep 1, 2023 · 1 comment

Comments

@alexjamesbrown
Copy link

I suspect this is an issue with newly released npm?
Not 100% sure how to fix it at the moment

=> ERROR [6/9] RUN npm install -g npm@latest                                                                                                                                                                              0.7s
------                                                                                                                                                                                                                          
 > [6/9] RUN npm install -g npm@latest:
#0 0.668 npm ERR! code EBADENGINE
#0 0.669 npm ERR! engine Unsupported engine
#0 0.669 npm ERR! engine Not compatible with your version of node/npm: [email protected]
#0 0.669 npm ERR! notsup Not compatible with your version of node/npm: [email protected]
#0 0.669 npm ERR! notsup Required: {"node":"^18.17.0 || >=20.5.0"}
#0 0.669 npm ERR! notsup Actual:   {"npm":"8.1.2","node":"v17.1.0"}
#0 0.673 
#0 0.673 npm ERR! A complete log of this run can be found in:
#0 0.673 npm ERR!     /root/.npm/_logs/2023-09-01T22_37_08_523Z-debug.log
@alexandersperling
Copy link

Upgrading the node Version in the FROM section of the Dockerfile helps.

eg. FROM node:17.1.0 --> FROM node:18

however, when doing this you might also need to adapt the command

RUN apt-get install -y python --> RUN apt-get install -y python3

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants