17 Replies
Project ID:
dfeae933-4ede-4022-ad66-77c17a055b6d
dfeae933-4ede-4022-ad66-77c17a055b6d
you need both a package.json and a package-lock.json so please keep them.
in your package.json set
engines.node
to 18
Hi, thank you for your answer. I made this change but I still have the following error
#10 2.528 error @strapi/[email protected]: The engine "node" is incompatible with this module. Expected version ">=14.19.1 <=18.x.x". Got "21.1.0"
#10 2.539 error Found incompatible module.
#10 2.539 info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.
#10 ERROR: process "/bin/bash -ol pipefail -c yarn install --frozen-lockfile" did not complete successfully: exit code: 1
-----
build logs please https://bookmarklets.up.railway.app/log-downloader/
still using node 21, show me how you have set 18
I don't get why, here is my package.json
{
"name": "strapi",
"private": true,
"version": "0.1.0",
"description": "A Strapi application",
"scripts": {
"develop": "strapi develop",
"start": "strapi start",
"build": "strapi build",
"strapi": "strapi"
},
"devDependencies": {},
"dependencies": {
"@strapi/plugin-i18n": "4.11.0",
"@strapi/plugin-users-permissions": "4.11.0",
"@strapi/provider-upload-cloudinary": "4.11.0",
"@strapi/strapi": "4.11.0",
"pg": "8.8.0"
},
"author": {
"name": "A Strapi developer"
},
"strapi": {
"uuid": "35d7a084-3088-4d0b-869e-f503693ee8e5"
},
"engines": {
"node": ">=18.0.0",
"npm": ">=6.0.0"
},
"license": "MIT"
}
oh wait
just
18
you are asking for greater than or equal to node 18, thus node 21Yep indeed but I stil have an error
do you use yarn or npm locally?
npm
then delete the yarn stuff
Thank you @Brody the deployment works now! There is an other bug but I will to fix it myself.
As I have not been coding for a while it was pretty challenging to dive back in error logs ^^ Thank you!
no problem, happy to help!