简体   繁体   中英

how to show live server of react once closing command line

I am trying to create my first react app. I've done a fair bit of work but then closed the command line prompt window. I now cant see any of my work and it says Hmmm... cant reach this page. localhost refused to connect.

How do I get my live server back for react please!

You can open package.json , on scripts part and you will see command to build react by type it on command line.

In your case, I think you can try npm start

Goto the project folder, now press shift with right mouse key

在此处输入图片说明 ,

open PowerShell then write

npm start

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