如何知道运行反应应用程序需要什么版本的节点?
我有一个 React 应用程序,在 node v12.18.2
上运行它的 npm install
和 npm start
操作完美运行,但在 上出现错误>节点v17.3.0
。那么如何知道我可以使用哪些版本的节点来使应用程序成功运行。
I have a react app, the npm install
and npm start
operations to run it on node v12.18.2
work perfectly but gives error on node v17.3.0
. So how to know what versions of node can i use for the app to run successfully.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
React 应用程序有一个 package.json 文件,在该文件中,通常指定成功运行所需的节点版本。这些信息可以在“engines”部分找到。
上面的代码表示,如果node版本高于0.10.3但低于15,则应用程序运行成功。
The React application has a
package.json
file and in this file, it is usually specified the version of node it needs to run successfully. This information can be found in the section called enginesThe above code says that the application runs successfully if the version of node is higher than 0.10.3 but lower than 15.