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.
我曾经以为 Node 只用在服务器端的应用程序中,是因为使用了 npm 命令以及随之而来的 node_modules 文件夹的生成。
但我注意到 CRA 也使用节点,那么这是否使前端成为节点应用程序?
我很感激对此的任何澄清!
您是在谈论 CRA 创建的最终 Web 应用程序吗?不,它不是 Node 应用程序。这是一个网络应用程序。它不需要节点。生成的开发环境使用 Node 作为后端 http 服务器。对于生产,通常可以使用任何 http 服务器。