简体   繁体   中英

how to run existing react project on vscode?

enter image description here I have run existing project, but the browser keeps showing me this. I can't see the project. Just the icon of react is spinning.

I tried to npm install and npm run start. But on the browser showed up the icon of react. What should I do to see the project?

Maybe you have another project running on the same default port.

Create a file with name.env in the main directory besides package.json and set PORT variable to desired port number.

For example:

.env

PORT=4200

then try it run again.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM