Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
所以我正在学习 React 和 Django,并npm run build在我的 Django 服务器(端口 8000)中运行 React App。然后我关闭了 React 应用程序(ctrl+C),现在我试图再次运行它。所以我想我应该npm run build再次执行,但它没有奏效。我正在运行 Django 服务器,但我不知道如何启动 React 应用程序。 我知道这听起来可能不清楚,但这是我作为初学者所能解释的最好的。如何重新打开 React 应用程序?
npm run build
为什么需要在同一个端口运行它们,最好通过npm start运行react,然后运行python.exe manage.py runserver 8080
BR