Did you mean to visit: http://localhost:3000/?
lsof -i :3000
(Mac/Linux)netstat -ano | findstr :3000
(Windows)
kill -9 PID
(Mac/Linux)taskkill /PID PID /F
(Windows)
PORT=3001 npm start
(React)npm start -- --port 3001
(Vite)
nc -z localhost 3000
(Mac/Linux)Test-NetConnection localhost -Port 3000
(PowerShell)
Configure your development environment properly:
PORT=3000
BROWSER=none
FAST_REFRESH=true
const PORT = process.env.PORT || 3000;
app.listen(PORT, () => {
console.log(`Server running on ${PORT}`);
});
Running your applications in Docker containers:
FROM node:18-alpine
WORKDIR /app
COPY package*.json ./
RUN npm install
COPY . .
EXPOSE 3000
CMD ["npm", "start"]
docker run -p 3000:3000 myapp
ports:
- "3000:3000"
Port 3000 is commonly used by:
This error occurs when another application is already using port 3000. Solutions:
PORT=3001 npm start
netstat -ano | findstr :3000
then taskkill /PID [PID] /F
Start React on a different port: PORT=3001 npm start
If your application is running but you can't connect:
This browser error indicates the server isn't running or accessible:
When your server starts but shows build errors:
npm install
to ensure all dependencies are installedrm -rf node_modules && npm install
npm update
Essential browser extension for React debugging
npm install -g react-devtools
If changes aren't reflecting:
FAST_REFRESH=true npm start
CHOKIDAR_USEPOLLING=true npm start
Monitor your app performance:
npm install --save-dev webpack-bundle-analyzer
Debug API calls and network requests
console.log('API URL:', process.env.REACT_APP_API_URL)
npm run build
and analyze the bundle sizenode --version && npm --version
npm audit