解析云代码处的更新条带模块 [英] Update Stripe module at Parse Cloud Code

查看:90
本文介绍了解析云代码处的更新条带模块的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

结果表明,解析代码"中的Stripe模块已过期,因此不会更新.

Turns out that Stripe module at Parse Could Code is out of date and won't be updated.

来源:

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

解析模块正在使用API​​的旧版本,因此没有计划 在不久的将来进行更新.

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

作为一种解决方法,请直接从第三个下载新的SDK. 方网站,将其放置在"cloud/"文件夹中,并使用require()导入;

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.

我已经通过终端通过命令

I have downloaded Stripe module via terminal with command

npm install stripe

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

I'm trying to import this module but when I deploy it to Parse, it seems that most of the modules are missing. I get errors like this:

更新失败,并显示错误:找不到模块child_process.js 在node_modules/stripe/lib/stripe.js:24:12

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

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

Hope someone can point me out on how to add third party modules to Parse Cloud Code properly. Thanks.

推荐答案

似乎Parse的模块支持确实是有限的,添加子模块是不可能的,甚至太复杂甚至不至于打扰,这就是为什么我决定迁移到Heroku的原因.感谢您提供所有答案!

Seems that Parse's module support is really limited and adding submodules is impossible or too complex to even bother, that's why I decided to move to Heroku. Thanks for all answers!

这篇关于解析云代码处的更新条带模块的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆