pip install uv# 1. Remove old system Node.js
sudo apt purge -y nodejs nodejs-doc libnode72
sudo apt autoremove -y
# 2. Install NVM (Node Version Manager)
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.7/install.sh | bash
source ~/.bashrc
# 3. Install Node.js 20 LTS
nvm install 20
nvm use 20
# 4. Verify
node -v # should show v20.x
npm -v # should show 10.xcd backend
uv synccd frontend
npm install
npm run buildcd backend
source .venv/bin/activate
uvicorn app.main:app --host 0.0.0.0 --port 8001cd frontend
node .output/server/index.mjs