Cannot find module 'bluebird' even though I have installed it.

1,049 views
Skip to first unread message

Colin Law

unread,
Sep 6, 2016, 7:28:21 AM9/6/16
to node...@googlegroups.com
I have a working system that uses node-red-contrib-owfs but I wish to
update to the latest version of this node. The node now has an
additional dependency of bluebird at ~3.3.5. I have installed
bluebird at that version using

sudo npm install -g blue...@3.3.5

but when I restart node-red I get
[owfs] Error: Cannot find module 'bluebird'

Can someone tell me what I am doing wrong please?

npm is 2.15.0
node-red is 0.13.3

Colin

Julian Knight

unread,
Sep 6, 2016, 11:54:22 AM9/6/16
to Node-RED
What version of node.js?

Colin Law

unread,
Sep 6, 2016, 12:10:25 PM9/6/16
to node...@googlegroups.com
On 6 September 2016 at 16:54, Julian Knight <j.kni...@gmail.com> wrote:
> What version of node.js?

Sorry, forgot to include that, node.js is 0.10.29

Colin
> --
> http://nodered.org
>
> Join us on Slack to continue the conversation: http://nodered.org/slack
> ---
> You received this message because you are subscribed to the Google Groups
> "Node-RED" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to node-red+u...@googlegroups.com.
> To post to this group, send email to node...@googlegroups.com.
> Visit this group at https://groups.google.com/group/node-red.
> For more options, visit https://groups.google.com/d/optout.

Colin Law

unread,
Sep 6, 2016, 4:16:36 PM9/6/16
to node...@googlegroups.com
I realise now what I was doing wrong. I had previously forked
node-red-contrib-owfs in order to do some enhancements to it. To use
the forked version I linked
/usr/lib/node_modules/node-red-contrib-owfs to my fork. In order to
update the node I had fetched the latest version from the authors
repository and had not realised that I needed to include a copy of
bluebird inside the owfs node directory. I have now done the job
properly(?) by updating the node via npm, copying bluebird across to
my fork, and relinking the directory to mine.

I will get the hang of how this all hangs together eventually. Sorry
for the noise

Colin
Reply all
Reply to author
Forward
0 new messages