【发布时间】:2013-12-20 20:28:13
【问题描述】:
我的应用程序在本地运行良好,在 Travis CI 构建服务器上运行良好,但在 Heroku 上运行时
我收到Error: Cannot find module,应用崩溃了。
关于 npm 模块的一些事实
- 它存在于 github 上
- 它是一个私人仓库
- 它像这样访问
"my_module": "git+https://MY_KEY:x-oauth-basic@github.com/me/my_module#develop"
编辑:
似乎 Heroku 在构建后错误地删除了我的模块
-----> Pruning unused dependencies
unbuild my_module@0.0.7
-----> Caching node_modules directory for future builds
【问题讨论】:
标签: javascript node.js heroku npm