Node.js :
# Ensure curl and unzip are installed (Ubuntu/Debian/WSL)
sudo apt-get update && sudo apt-get install -y curl unzip
# Download and install fnm:
curl -o- https://fnm.vercel.app/install | bash
# In lieu of restarting the shell
export PATH="$HOME/.local/share/fnm:$PATH"
eval "$(fnm env)"
# Download and install Node.js:
#fnm install --use 26
fnm install 26
fnm use 26
fnm default 26
# Verify the Node.js version:
node -v # Should print "v26.13.0".
# Install and enable Corepack (provides both pnpm and yarn):
npm install -g corepack
corepack enable
# Verify pnpm version:
pnpm -v
# (Optional) Install yarn
yarn -v
pm2 :
npm install -g pm2
pm2 -v
pnpm :
pnpm --version
# 1. Convert package-lock.json (or yarn.lock) to pnpm-lock.yaml
pnpm import
# 2. Delete old lockfile and old node_modules
rm -rf node_modules package-lock.json
# 3. Install dependencies with pnpm
pnpm install