Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Downstream dependencies require node 20, not 18 #231

Open
1 task done
dustinrue opened this issue Jun 13, 2024 · 0 comments
Open
1 task done

Downstream dependencies require node 20, not 18 #231

dustinrue opened this issue Jun 13, 2024 · 0 comments
Labels

Comments

@dustinrue
Copy link
Contributor

Describe the bug

When trying to install @wordpress/create-block (at least) requires node 20 but the .nvmrc file defines 18.

Now using node v18.20.3 (npm v10.7.0)
npm error code EBADENGINE
npm error engine Unsupported engine
npm error engine Not compatible with your version of node/npm: @wordpress/[email protected]
npm error notsup Not compatible with your version of node/npm: @wordpress/[email protected]
npm error notsup Required: {"npm":">=10.2.3","node":">=20.10.0"}
npm error notsup Actual:   {"npm":"10.7.0","node":"v18.20.3"}

Modifying .nvmrc to spec node 20 allows the install to complete but I don't know if it causes any other issues. Additionally, the README says node 16 or greater is required.

Steps to Reproduce

  1. Have the latest release of WP Scaffold
  2. Use nvm install/use
  3. run npm install

Screenshots, screen recording, code snippet

No response

Environment information

No response

WordPress information

No response

Code of Conduct

  • I agree to follow this project's Code of Conduct
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant