I downloaded the React App package from the link create-react-app. The default port it assigns is port:3000
How to Change this port to a custom port like 3002 or 3006 ?
I downloaded the React App package from the link create-react-app. The default port it assigns is port:3000
How to Change this port to a custom port like 3002 or 3006 ?
modify part of package.json from:
"start": "react-scripts start"
for Linux and MacOS to:
"start": "PORT=3006 react-scripts start"
Windows to:
"start": "set PORT=3006 && react-scripts start"