# Switch to a specific version (temporary - only for current terminal)
nvm use 20.11.0
# List all installed versions
nvm list
# Switch to latest LTS version
nvm use --lts
# Switch to latest stable version
nvm use node# Set default version (applies to new terminal windows)
nvm alias default 20.11.0
# Or use latest LTS as default
nvm alias default lts/*# Install latest LTS version
nvm install --lts
# Install specific version
nvm install 20.11.0
# Install latest stable version
nvm install nodenode --version
nvm currentYou can create a .nvmrc file in your project root with the version number:
echo "20.11.0" > .nvmrcThen nvm will automatically switch when you cd into the directory (if you have auto-switching enabled):
nvm use # Automatically reads .nvmrcBased on your installation, you have:
- Currently Active: v20.11.0 ✅ (Works with Wrangler)
- Other Available Versions: v18.20.8, v20.10.0, v24.11.0, v25.1.0
- Old Version: v12.18.4 (doesn't work with newer Wrangler)
For this project, we recommend using Node.js v20.11.0 (or any v20+):
nvm use 20.11.0
nvm alias default 20.11.0If you find yourself back on v12.18.4 when opening a new terminal:
# Set the default
nvm alias default 20.11.0
# Or add to your shell profile (~/.zshrc for zsh, ~/.bashrc for bash)
echo 'nvm use 20.11.0' >> ~/.zshrcIf nvm isn't available in a new terminal, you may need to add it to your shell profile. nvm usually adds this automatically during installation, but you can check:
# For zsh (which you're using)
echo 'export NVM_DIR="$HOME/.nvm"' >> ~/.zshrc
echo '[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh"' >> ~/.zshrc
source ~/.zshrcWith Node.js v20.11.0 active, you can now run:
npx wrangler secret put ADMIN_PASSWORD_HASHMake sure you're in the project directory when running this!