to change port of local npm --port localhost code example Example: change port in npm start npm run dev -- --port 8080