nodejs android ios,How to run Nodejs runtime on android or ios mobile devices

本文讨论了并非所有Node.js包都需要Node运行时环境,一些可以在浏览器环境中运行,如lodash。如果你使用Ionic框架构建应用,安装Node包通常不成问题。然而,某些包可能需要操作系统支持。在这种情况下,你可能需要考虑是否将该功能委托给API端点。如果确实需要在移动应用中使用Node运行时,可以考虑使用nodejs-mobile库。
摘要由CSDN通过智能技术生成

Updated 2020 answer

All node packages don't require node runtime to be present. Some can be run on browsers as well. Example. lodash.

If you are building an application using the Ionic framework, you should be able to install node packages without any issues. However, some of the packages require OS to run. In that case, you might wanna evaluate if it makes sense to delegate that responsibility to an API endpoint.

If you absolutely need a Node runtime on your mobile app, you can use this library (nodejs-mobile).

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值