2016-10-20 33 views
2

我試圖使用node-canvas創建帶有AWS Lambda函數的動畫gif。但是我正在努力甚至在所有的依賴關係中脫穎而出。在Lambda函數中使用node-canvas?

I've read the thread here,但它主要是希臘語,我不能得到它的工作。

我更喜歡開箱即用(預建)選項,並找到node-canvas-lambda-deps,但文檔很稀疏(不存在),所以我不知道如何使用它。

我試圖複製this example一字不差,但只得到了錯誤:

Error: function response: Module did not self-register. 

任何提示,讓節點帆布,或任何方法來創建GIF動畫,在LAMBDA運行?

回答

1

prebuilt binaries here做的工作,只是要深入到問題找到這樣的:

AWS is suggesting running node 4.3 for node endpoints, but this version of canvas will only work with 0.10. If nothing else, perhaps specifying the runtime in the readme.md file would be helpful. Thanks for putting this example together though. Super helpful!