DEV Community

Faisal Ahmed
Faisal Ahmed

Posted on

Change PORT on react project

1st way:

  • create .env file
  • and write: PORT=3010

Image description

2nd way:

  • in the package.json file
  • change: "start": "react-scripts start",
  • and type : "start": "set PORT=3020 && react-scripts start",

Image description

Top comments (0)

A Workflow Copilot. Tailored to You.

Pieces.app image

Our desktop app, with its intelligent copilot, streamlines coding by generating snippets, extracting code from screenshots, and accelerating problem-solving.

Read the docs

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay