Home > Web Front-end > JS Tutorial > body text

What is the method to modify the port number in react

王林
Release: 2020-12-07 16:14:52
forward
2799 people have browsed it

What is the method to modify the port number in react

The specific steps are as follows:

(Related recommendations: react tutorial)

First open the package.json file of the react project ;

Then i modify the start key-value pair in scripts to

"start": "react-scripts start"
Copy after login

.

"scripts": {  
"start": "set PORT=9000 && react-scripts start",  
"build": "react-scripts build",  
"test": "react-scripts test --env=jsdom",  
"eject": "react-scripts eject"
}
Copy after login

The above is the detailed content of What is the method to modify the port number in react. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:csdn.net
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template