Answers for "react app change port"

17

set port in react app

//in package.json

"start": "react-scripts start"
t0
//linux
"start": "PORT=3006 react-scripts start"
or 
"start": "export PORT=3006 react-scripts start"
//windows
"start": "set PORT=3006 && react-scripts start"
Posted by: Guest on September-25-2020
3

reactjs app change port

"start": "react-scripts start"
t0
//linux
"start": "PORT=3006 react-scripts start"
or 
"start": "export PORT=3006 react-scripts start"
//windows
"start": "set PORT=3006 && react-scripts start"
Posted by: Guest on January-10-2021
1

react port

// Ubuntu / CentOS / RHEL / MacOS environment:

...
  "scripts": {
    "start": "PORT=8000 react-app-rewired start",
    "build": "react-app-rewired build",
    "test": "react-app-rewired test --env=jsdom",
    "eject": "react-app-rewired eject"
  }
...
Posted by: Guest on June-06-2021
1

yarn start port

Create a .env file in your project folder
add the line "PORT=3006" inside the file and save
Posted by: Guest on January-18-2021
0

change port react app

//windows
"start": "set PORT=3006 && react-scripts start"
Posted by: Guest on September-02-2021
0

how to change port in react js

PORT=5010 react-scripts start
Posted by: Guest on June-10-2021

Code answers related to "react app change port"

Code answers related to "Javascript"

Browse Popular Code Answers by Language