The engine “node” is incompatible with this module.
1. When executing the yarn command, an error is reported: The engine “node” is incompatible with this module.expected version “^14.18.0 || ^16.14.0 || >=18.0.0”. Got “16.13.1”. as shown in Figure 1
PS E:\wwwroot\shopify-app>yarn create @shopify/app
yarn create v1.22.15
[1/4] Resolving packages...
[2/4] Fetching packages...
error execa@7.2.0: The engine "node" is incompatible with this module. Expected version "^14.18.0 || ^16.14.0 || >=18.0.0". Got "16.13.1"
error Found incompatible module.
info Visit https://yarnpkg.com/en/docs/cli/create for documentation about this command.
2, ^16.14.0 is equivalent to >=16.14.0, <16.15, and decided to reinstall the latest version of 16 of Node.js. Open URL:https://nodejs.org/dist/latest-v16.x/Plan to download node-v16.20.2-x64.msi. However, it was found that it did not meet the requirements of the version dependency. as shown in Figure 2
3. >=18.0.0 is also feasible, the most decided to download the latest version of 18. Download node-v18.18.0-x64.msi. When the yarn command is executed again, an error is no longer reported. as shown in Figure 3
PS E:\wwwroot\shopify-app> node -v
v18.18.0
PS E:\wwwroot\shopify-app> yarn create @shopify/app
yarn create v1.22.15
[1/4] Resolving packages...
[2/4] Fetching packages...
[3/4] Linking dependencies...
warning "@shopify/create-app > @oclif/core > ts-node@10.9.1" has unmet peer dependency "@types/node@*".
warning "@shopify/create-app > @oclif/core > ts-node@10.9.1" has unmet peer dependency "typescript@>=2.7".
[4/4] Building fresh packages...
success Installed "@shopify/create-app@3.49.3" with binaries:
- create-app
Welcome. Let’s get started by naming your app project. You can change it later.
? Your project name?
> fruitful-shareholder-app
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔


