fivepapertigers / serverless-plugin-pubsub

Simple pub/sub configuration with queueing for the Serverless Framework

Home Page:https://www.npmjs.com/package/serverless-plugin-pubsub/access

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Cannot find module 'bluebird'

zfarrell opened this issue · comments

Hi there, I just tried installing this plugin. Upon starting up sls offline i receive this error:

  Serverless plugin "serverless-plugin-pubsub" initialization errored: Cannot find module 'bluebird'

I don't see a dependency for bluebird within package.json, yet index.js uses it.

For now, i'm able to get around this by installing bluebird within my project: npm install --save-dev bluebird.

Let me know if I'm doing something wrong, or if this is a bug. Thanks!

commented

@zfarrell, bluebird is a dependency of the serverless package, which is why it usually resolves correctly. But I'll make it an explicit install.

And apologies for the delay in response - this one must have slipped by me.