npm start port code example
Example 1: cancel ng server port
Using your terminal, find the PID of port 4200
netstat -ano | findstr :4200
Kill task by the PID Number (Replace 15940)
taskkill /PID 15940 /F
Example 2: change port in npm start
npm run dev -- --port 8080
Example 3: react native npm run start port
"scripts": { "start": "react-native start --port 9988"}