AWS Lambda - 找不到模块

时间:2015-05-27 19:01:20

标签: aws-lambda

我的zip文件包含:mylambda.js node_modules

mylambda需要mycommon。

在node_modules中有一个名为" mycommon"的模块。

在node_modules / mycommon里面有一个" node_modules"与" bunyan"在里面。 (它是mycommon模块的依赖项。)

从node_modules / mycommon / src / logging.js需要它。

无论我做什么,即使我把bunyan放在顶级node_modules中,我也总是得到错误"找不到模块" bunyan""来自node_modules / mycommon / src / logging.js。

建议的解决方法是什么?是否有一个lambda捆绑器可以为我照顾这个? (像browserify一样。)

非常感谢。

0 个答案:

没有答案
相关问题