strapi / starters-and-templates

Monorepo for all official Strapi v4 templates
MIT License
327 stars 117 forks source link

Node version is too high?? #55

Open jordanlambrecht opened 2 years ago

jordanlambrecht commented 2 years ago

On install using yarn create strapi-starter my-project next-blog I get the following failure:

Error while installing dependencies:
warning ../../../package.json: No license field
error backend@0.1.0: The engine "node" is incompatible with this module. Expected version ">=12.x.x <=16.x.x". Got "18.5.0"
error Found incompatible module.

 Keep trying!             

Oh, it seems that you encountered errors while installing dependencies in your project.
Don't give up, your project was created correctly.
Fix the issues mentioned in the installation errors and try to run the following command:

cd /Users/jordanlambrecht/dev-local/my-project/backend && yarn install
quantran020173 commented 2 years ago

Expected version ">=12.x.x <=16.x.x". Got "18.5.0" error Found incompatible module. -> You should install Node LTS not latest version, you can uninstall and install node again with version 16 or learn how to use nvm.

WilsonLe commented 1 year ago

Like @quantran020173 mentioned, you should use nvm (short for Node Version Manager) to manage your, well, Node versions. It lets you quickly switch between node versions, install other versions quickly and reliably.

The installation guide can be found here

After you install nvm, you can easily switch to Node16 by nvm use 16. If you have not installed Node16, you can simply install it by nvm install 16.

JoshuaAlzate commented 1 year ago

Is Strapi do not support Node 18?