Skip to content

Commit 107d81b

Browse files
authored
feat(installer): Set default Node runtime to 22.23.0 (#662)
1 parent e4c7852 commit 107d81b

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

installer/README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ powershell -c Unblock-File -Path .\flowfuse-device-agent-installer.exe
3838
|------|--------|---------|-------------|
3939
| `--otc` | `-o` | *optional* | FlowFuse one time code for authentication (optional for interactive installation) |
4040
| `--url` | `-u` | `https://app.flowfuse.com` | FlowFuse URL |
41-
| `--nodejs-version` | `-n` | `20.19.1` | Node.js version to install (minimum) |
41+
| `--nodejs-version` | `-n` | `22.23.0` | Node.js version to install (minimum) |
4242
| `--agent-version` | `-a` | `latest` | Device agent version to install/update to |
4343
| `--service-user` | `-s` | `flowfuse` | Username for the service account (linux/macos)|
4444
| `--dir` | `-d` | `/opt/flowfuse-device` (Linux/macOS) or `C:\opt\flowfuse-device` (Windows) | Installation directory for the device agent |
@@ -57,7 +57,7 @@ powershell -c Unblock-File -Path .\flowfuse-device-agent-installer.exe
5757
./flowfuse-device-agent-installer --otc ONE_TIME_CODE
5858

5959
# Install with custom settings
60-
./flowfuse-device-agent-installer --otc ONE_TIME_CODE --url https://your-flowfuse-instance.com --nodejs-version 20.19.1
60+
./flowfuse-device-agent-installer --otc ONE_TIME_CODE --url https://your-flowfuse-instance.com --nodejs-version 22.23.0
6161

6262
# Install in non-default directory and port
6363
./flowfuse-device-agent-installer --otc ONE_TIME_CODE --dir /custom/dir --port 1882
@@ -132,7 +132,7 @@ sc.exe query flowfuse-device-agent-<port>
132132
To update Node.js, you can specify the `--update-nodejs` flag with the desired version:
133133

134134
```bash
135-
./flowfuse-device-agent-installer --update-nodejs --nodejs-version 20.19.1
135+
./flowfuse-device-agent-installer --update-nodejs --nodejs-version 22.23.0
136136
```
137137

138138
Specifying `--update-nodejs` flag without a version will pick the default version defined in the installer.

installer/go/main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ var (
2929
)
3030

3131
func init() {
32-
pflag.StringVarP(&nodeVersion, "nodejs-version", "n", "20.19.1", "Node.js version to install (minimum)")
32+
pflag.StringVarP(&nodeVersion, "nodejs-version", "n", "22.23.0", "Node.js version to install (minimum)")
3333
pflag.StringVarP(&agentVersion, "agent-version", "a", "latest", "Device agent version to install/update to")
3434
pflag.StringVarP(&serviceUsername, "service-user", "s", "flowfuse", "Username for the service account")
3535
pflag.StringVarP(&flowfuseURL, "url", "u", "https://app.flowfuse.com", "FlowFuse URL")

0 commit comments

Comments
 (0)