From d48c77ec8e729d4061ee0bd7e42bc84b8ec9615d Mon Sep 17 00:00:00 2001 From: Daniel Bachhuber Date: Tue, 18 Jul 2023 13:45:33 -0700 Subject: [PATCH] wp-now: Switch back to Node 18 as minimum supported version (#90) ## What? Switches back to Node 18 as the minimum supported version. Node 20 is required for Blueprint support (it crashes otherwise). See https://github.com/WordPress/playground-tools/issues/83 Fixes https://github.com/WordPress/playground-tools/issues/87 --- packages/wp-now/README.md | 2 ++ packages/wp-now/src/main.ts | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/packages/wp-now/README.md b/packages/wp-now/README.md index 85b7e821..b0fa7725 100644 --- a/packages/wp-now/README.md +++ b/packages/wp-now/README.md @@ -14,6 +14,8 @@ To install `wp-now` directly from `npm`: npm install -g @wp-now/wp-now ``` +Node 18 is the minimum supported version. Node 20 is required for Blueprint support. + Alternatively, you can install `wp-now` via `git clone` if you'd like to hack on it too. See [Contributing](#contributing) for more details. Once installed, you can start a new server like so: diff --git a/packages/wp-now/src/main.ts b/packages/wp-now/src/main.ts index b80b9e62..9ccbfc3a 100644 --- a/packages/wp-now/src/main.ts +++ b/packages/wp-now/src/main.ts @@ -1,6 +1,6 @@ import { runCli } from './run-cli'; -const requiredMajorVersion = 20; +const requiredMajorVersion = 18; const currentNodeVersion = parseInt(process.versions?.node?.split('.')?.[0]);