medusajs/docker-medusa

engine Not compatible with your version of node/npm: npm@10.0.0

Opened this issue · 1 comments

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: npm@10.0.0
#0 0.669 npm ERR! notsup Not compatible with your version of node/npm: npm@10.0.0
#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

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