Skip to content

A local-first personal finance app

drop support for node 20 (#811)

Matt Fiddaman07224b1dfdbe
diff --git a/.nvmrc b/.nvmrc
new file mode 100644
index 0000000000..c4c5185671
--- /dev/null
+++ b/.nvmrc
@@ -0,0 +1 @@
+v22/*
diff --git a/docs/contributing/windows.md b/docs/contributing/windows.md
index 4da5480ce3..94d3d81cbe 100644
--- a/docs/contributing/windows.md
+++ b/docs/contributing/windows.md
@@ -4,7 +4,7 @@ Many of the build scripts are bash scripts and not natively invocable in Windows
1. Install [Git & Git Bash for Windows](https://git-scm.com/downloads).
2. Ensure you have activated [Developer Mode](https://docs.microsoft.com/en-us/windows/apps/get-started/enable-your-device-for-development).
-3. Install Node v20.x or greater.
+3. Install Node v22.x or greater.
4. Clone this repo.
5. Using Git Bash (run as administrator), change to the root of this repo.
6. From inside the bash shell, run `yarn install`.
diff --git a/docs/install/build-from-source.md b/docs/install/build-from-source.md
index b49d100701..f766b09155 100644
--- a/docs/install/build-from-source.md
+++ b/docs/install/build-from-source.md
@@ -16,7 +16,7 @@ Actual server is used for syncing changes across devices. It comes with the late
## Prerequisites
-- The Actual server requires Node.js v20 or greater. You can download and install the latest version of Node.js from [Node.js website](https://nodejs.org/en/download) (we recommend downloading the “LTS” version).
+- The Actual server requires Node.js v22 or greater. You can download and install the latest version of Node.js from [Node.js website](https://nodejs.org/en/download) (we recommend downloading the “LTS” version).
- If you're on Windows, during installation of Node.js, be sure to select _Automatically install the necessary tools_ from the _Tools for Native Modules_ page. This is required to build better-sqlite3. If you missed this when you installed Node.js, double-click ```C:\Program Files\nodejs\install_tools.bat``` from the File Explorer or run it in a terminal.
- Consider using a tool like [nvm](https://github.com/nvm-sh/nvm) or [asdf](https://asdf-vm.com) to install and manage multiple versions of Node.js.
- You’ll also need to have Git installed. For Windows users, you'll also need Git Bash. The Git website has [instructions for downloading and working with Git for all supported operating systems](https://git-scm.com/download).
diff --git a/docs/install/cli-tool.md b/docs/install/cli-tool.md
index 3ba37fae4a..6159ad46ab 100644
--- a/docs/install/cli-tool.md
+++ b/docs/install/cli-tool.md
@@ -8,7 +8,7 @@ The Actual sync-server is available as an NPM package. The package is designed t
### Installing the CLI tool
-Node.js v20 or higher is required for the `@actual-app/sync-server` npm package
+Node.js v22 or higher is required for the `@actual-app/sync-server` npm package
**Install globally with npm:**
diff --git a/package.json b/package.json
index 06db18bcb6..7f1c8a239b 100644
--- a/package.json
+++ b/package.json
@@ -48,7 +48,7 @@
]
},
"engines": {
- "node": ">=20"
+ "node": ">=22"
},
"packageManager": "[email protected]"
}