sanjayacloud's avatar

Cannot run ./vendor/bin/sail up -d

I am trying to setup vapor in my local. I ran ./vendor/bin/sail up -d command and return me below errors.

Processing triggers for man-db (2.9.1-1) ...
#0 153.6 npm ERR! code EBADENGINE
#0 153.6 npm ERR! engine Unsupported engine
#0 153.6 npm ERR! engine Not compatible with your version of node/npm: [email protected]
#0 153.6 npm ERR! notsup Not compatible with your version of node/npm: [email protected]
#0 153.6 npm ERR! notsup Required: {"node":"^18.17.0 || >=20.5.0"}
#0 153.6 npm ERR! notsup Actual:   {"npm":"8.19.4","node":"v16.20.2"}
#0 153.6 
#0 153.6 npm ERR! A complete log of this run can be found in:
#0 153.6 npm ERR!     /root/.npm/_logs/2023-09-13T23_22_14_001Z-debug-0.log

I am using macbook pro m2 chip.

1 like
4 replies
vincent15000's avatar

#0 153.6 npm ERR! notsup Required: {"node":"^18.17.0 || >=20.5.0"}

#0 153.6 npm ERR! notsup Actual: {"npm":"8.19.4","node":"v16.20.2"}

Upgrade your node / npm version.

shveppi's avatar

how to do it ? I check the version of my node node -v in console v20.6.1 but there is an error npm ERR! notsup Required: {"node":"^18.17.0 || >=20.5.0"} npm ERR! notsup Actual: {"npm":"8.19.4","node":"v16.20.2"}

2 likes
gazchap's avatar

@shveppi Just found this thread after having the same problem trying to build and run a Sail project on WSL2, that was working fine on my previous machine but had this problem.

You may have fixed yours in the end, but if not, and for anyone else that might come across this problem, I had to edit the Dockerfile in the docker/8.1 folder (or whichever version of PHP is being used) and change the ARG NODE_VERSION=16 line to ARG NODE_VERSION=18 (although other versions newer than 18 will probably work just as well)

2 likes
terlebach's avatar

Hey @gazchap I installed a old project today and got stucked. You saved me so much time! Thanks a lot for your comment!

1 like

Please or to participate in this conversation.