I have a project using express and mongodb.
I have successfully installed mongodb, and I can connect to it. If I run my app, I am able to insert and query the db.
I am able to successfully run my app from a terminal using “node app.js”.
When I try to debug my app (running my app from a “Run Configuration”) I get the following error :
ENOTDIR: not a directory, stat ‘/home/ubuntu/workspace/node_modules/mongodb/node_modules/mongodb-core/lib/auth/gssapi.js/package.json’
This is caused by the line of code which is loading the mongodb :
var MongoClient = require(‘mongodb’).MongoClient
What am I doing wrong ? Why does this work if I start the app from a terminal, and not when I start it from a “Run Configuration” ?
( I am really new to C9 and node.js , hopefully I am not doing anything stupid )