[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 <mathben@technolibre.ca>
This commit is contained in:
Mathieu Benoit 2026-04-11 04:21:55 -04:00
parent 212a9238c9
commit cd14e128ff

View file

@ -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