[英]How to make application runnable on older version of node
I'd like to be able developing a Node.JS application using the latest features of JS and Node.JS (like Node.JS v8 or even v13), but I need to deploy the app on embedded Linux server with Node.JS v4 (Omega2, OpenWRT, MIPS arch ).我希望能够使用 JS 和 Node.JS(如 Node.JS v8 甚至 v13)的最新功能开发 Node.JS 应用程序,但我需要使用 Node.JS v4在嵌入式 Linux 服务器上部署该应用程序(Omega2、OpenWRT、 MIPS架构)。
Is it possible somehow to build the app and make it runnable on such an old version of Node.JS?是否有可能以某种方式构建应用程序并使其可在如此旧版本的 Node.JS 上运行? Thank you for your answers, suggestions, and solutions!
感谢您的回答、建议和解决方案!
您可以使用 nvm 在系统中拥有两个版本的 node,并且可以在不同的 node 版本中运行这两个应用程序。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.