node.js – 在Parse Cloud Code上更新Stripe模块

事实证明,Parse Could Code中的Stripe模块已过期,不会更新.

资源:

https://developers.facebook.com/bugs/523104684492016/

Parse modules are using an old version of the API and there is no plan
to update it in the near future.

As a workaround please download the newer SDKs directly off the third
party site, place it in “cloud/” folder and import it using require();

We’re going to close this by design.

我通过终端用命令下载了Stripe模块

npm install stripe

我正在尝试导入这个模块但是当我将它部署到Parse时,似乎大多数模块都缺失了.我得到这样的错误:

Update failed with Error: Module child_process.js not found
at node_modules/stripe/lib/stripe.js:24:12

希望有人可以指出我如何正确地将第三方模块添加到Parse Cloud Code.谢谢.

最佳答案 似乎Parse的模块支持非常有限,添加子模块是不可能的或太复杂甚至不会打扰,这就是为什么我决定转移到Heroku.谢谢你的回答!

点赞