Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot find module 'domain' when starting node.js #6

Open
awongCM opened this issue May 25, 2014 · 0 comments
Open

Cannot find module 'domain' when starting node.js #6

awongCM opened this issue May 25, 2014 · 0 comments

Comments

@awongCM
Copy link

awongCM commented May 25, 2014

Hi there,

I tried following your tutorial guide in using backbone js with nested relational tutorial. I followed all the installation ie node.js, mongodb install till I start node js up.

And this is the error message I received when starting up...

andy@LINUXAWCM:~/Projects/Javascript/backbone-relational-tutorial$ node app
js-bson: Failed to load c++ bson extension, using pure JS version

node.js:201
throw e; // process.nextTick error, or 'error' event on first tick
^
Error: Cannot find module 'domain'
at Function._resolveFilename (module.js:332:11)
at Function._load (module.js:279:25)
at Module.require (module.js:354:17)
at require (module.js:370:17)
at Object. (/home/andy/Projects/Javascript/backbone-relational-tutorial/node_modules/restify/lib/server.js:3:14)
at Module._compile (module.js:441:26)
at Object..js (module.js:459:10)
at Module.load (module.js:348:31)
at Function._load (module.js:308:12)
at Module.require (module.js:354:17)

Says that it complains module 'domain' is not found. So I ran this command

andy@LINUXAWCM:~/Projects/Javascript/backbone-relational-tutorial$ sudo npm install domain -g
[sudo] password for andy:
npm http GET http://registry.npmjs.org/domain
npm http 304 http://registry.npmjs.org/domain
npm ERR! error rolling back Error: UNKNOWN, unknown error '/usr/local/lib/node_modules/domain'
npm ERR! error rolling back [email protected] { [Error: UNKNOWN, unknown error '/usr/local/lib/node_modules/domain']
npm ERR! error rolling back errno: -1,
npm ERR! error rolling back code: 'UNKNOWN',
npm ERR! error rolling back path: '/usr/local/lib/node_modules/domain' }
npm ERR! Error: UNKNOWN, unknown error '/usr/local/lib/node_modules/domain'
npm ERR! If you need help, you may report this entire log,
npm ERR! including the npm and node versions, at:
npm ERR! http://github.com/isaacs/npm/issues

npm ERR! System Linux 3.5.0-49-generic
npm ERR! command "node" "/usr/local/bin/npm" "install" "domain" "-g"
npm ERR! cwd /home/andy/Projects/Javascript/backbone-relational-tutorial
npm ERR! node -v v0.6.12
npm ERR! npm -v 1.3.26
npm ERR! path /usr/local/lib/node_modules/domain
npm ERR! code UNKNOWN
npm ERR! errno -1
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! /home/andy/Projects/Javascript/backbone-relational-tutorial/npm-debug.log
npm ERR! not ok code undefined
npm ERR! not ok code -1

It suggested the module domain cannot be downloaded from registry.npmjs.org, thus I'm confused how does one need to be able to get app up and running if the module required does not exist?

Hope you can help me out on this.

Thanks,

Andy

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant