【问题标题】:Requiring npm in meteorite heroku buildpack在陨石 heroku buildpack 中需要 npm
【发布时间】:2013-03-03 16:52:11
【问题描述】:

有没有办法修改这个构建包

https://github.com/oortcloud/heroku-buildpack-meteorite

安装这个 npm

https://github.com/abh/node-stripe

它在开发中运行良好,但我不知道如何在 Heroku 上安装和要求它

我需要它使用

__meteor_bootstrap__.require('stripe')(api_key)

【问题讨论】:

  • 您是否遇到了类似here 中提到的错误?

标签: heroku meteor meteorite


【解决方案1】:

使用你的 npm 依赖项在你的流星项目中创建一个 package.json(你的节点条带)。

看看这个项目https://github.com/matb33/heroku-meteor-npm也许会对你有所帮助..

【讨论】:

    猜你喜欢
    • 2013-06-20
    • 2013-05-03
    • 2013-10-21
    • 1970-01-01
    • 2013-02-17
    • 2013-12-25
    • 2014-09-24
    • 1970-01-01
    • 2015-04-14
    相关资源
    最近更新 更多