Node v0.8.5 REPL: Cannot find module when requiring npm installed module

Viewed 2381

I have a node app with a package.json file declaring my dependencies.

I've run npm install to install those deps to a local node_modules folder, and when I run my app, everything works great.

The problem is when I try to spike out some new functionality by firing up the node REPL:

$ node           
> require('hubot');
Error: Cannot find module 'hubot'

In the REPL, it doesn't seem to know to look inside node_modules. Is this expected behavior, or is hubot weird?

1 Answers
Related