webstorm, node.js and mongodb

I have added the following line to a node.js application:
var mongo = require("mongo");

I get an exception.

I did
npm install mongo
and it succeeded

So why is it not being found

2 comments
Comment actions Permalink

Is it being found if you run your app in terminal manually?

0
Comment actions Permalink

Try using

npm install mongodb


worked for me.
0

Please sign in to leave a comment.