Description
Link to the documentation page or resource
https://docs.strapi.io/cloud/getting-started/deployment-cli
Describe the bug
I folowed the instructions for Cloud CLI deployment, including the link to local installation via CLI.
Everything works as expected when installing and running strapi locally but when I try to use "npx run strapi login" and "npx run strapi deploy" i get a MODULE_NOT_FOUND error for strapi.
Additional context
Is this because I'm using v22 of node.js? The installation docs say only v18 and v20 but I assumed v22 would work as well as it is an LTS version and the docs are just outdated.
I can see "@strapi/strapi": "5.8.0", in dependencies and have tried running npm install again and get the warnings:
npm warn EBADENGINE Unsupported engine {
npm warn EBADENGINE package: '@strapi/pack-up@5.0.2',
npm warn EBADENGINE required: { node: '>=18.0.0 <=20.x.x', npm: '>=6.0.0' },
npm warn EBADENGINE current: { node: 'v22.12.0', npm: '10.9.0' }
npm warn EBADENGINE }
but the package.json shows:
"engines": {
"node": ">=18.0.0 <=22.x.x",
"npm": ">=6.0.0"
},
Suggested improvements or fixes
I've only got a basic understanding of this stuff so need some guidance. I feel like this should just work when following the documentation.
Related issue(s)/PR(s)
No response