[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:
parent
212a9238c9
commit
cd14e128ff
1 changed files with 2 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue