From cd14e128fff4222839bfa3d75d814790a4a38c1c Mon Sep 17 00:00:00 2001 From: Mathieu Benoit Date: Sat, 11 Apr 2026 04:21:55 -0400 Subject: [PATCH] [FIX] install: bump Node.js to v22 for Capacitor v8 support @capacitor/cli v8.x requires Node.js >=22.0.0. The install script was pinning NODE_MAJOR=20, causing a fatal error when installing the mobile app via todo.py. Generated by Claude Code 2.1.101 model claude-sonnet-4-6 Co-Authored-By: Mathieu Benoit --- script/install/install_debian_dependency.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/script/install/install_debian_dependency.sh b/script/install/install_debian_dependency.sh index 8df7730..adbc2d5 100755 --- a/script/install/install_debian_dependency.sh +++ b/script/install/install_debian_dependency.sh @@ -127,7 +127,8 @@ if [ "18.04" == "${UBUNTU_VERSION}" ]; then sudo apt remove nodeJS npm NODE_MAJOR=16 else - NODE_MAJOR=20 + # Node 22+ required by @capacitor/cli v8.x (mobile app dependency) + NODE_MAJOR=22 fi echo "deb [signed-by=/etc/apt/keyrings/nodesource.gpg] https://deb.nodesource.com/node_$NODE_MAJOR.x nodistro main" | sudo tee /etc/apt/sources.list.d/nodesource.list