Troubleshooting
Updated Feb 18, 2026
ReactJs
On This Page
Port Already in Use
If port 5173 is already in use, Vite will automatically try the next available port. You can also specify a custom port:
npm run dev -- --port 3000
Node Version Issues
If you see errors related to Node.js version, use nvm (Node Version Manager) to switch versions:
# Install nvm (macOS/Linux)
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.0/install.sh | bash
# Install and use Node 18
nvm install 18
nvm use 18
Permission Errors (macOS/Linux)
# Fix npm permissions
sudo chown -R $(whoami) ~/.npm
Last updated: February 18, 2026
Edit this page