[rhelv6-list] software collection nodejs010 require module throws error

Romu Hu huruomu at gmail.com
Wed Nov 5 03:49:28 UTC 2014


Hi,

I've been trying to use nodejs010 packages of 1.1.  I have installed 
nodejs010-nodejs-inherits-2.0.0-6.el6.noarch and 
nodejs010-nodejs-bson-0.2.3-3.3.el6.x86_64, but when I try to require 
the bson and inherits module, node throws error:

$ scl enable nodejs010 node
 > var inherits = require("bson")
Error: Cannot find module 'bson'
     at Function.Module._resolveFilename (module.js:338:15)
     at Function.Module._load (module.js:280:25)
     at Module.require (module.js:364:17)
     at require (module.js:380:17)
     at repl:1:16
     at REPLServer.self.eval (repl.js:110:21)
     at repl.js:249:20
     at REPLServer.self.eval (repl.js:122:7)
     at Interface.<anonymous> (repl.js:239:12)
     at Interface.EventEmitter.emit (events.js:95:17)
 > var inherits = require("inherits")
Error: Cannot find module 'inherits'
     at Function.Module._resolveFilename (module.js:338:15)
     at Function.Module._load (module.js:280:25)
     at Module.require (module.js:364:17)
     at require (module.js:380:17)
     at repl:1:16
     at REPLServer.self.eval (repl.js:110:21)
     at repl.js:249:20
     at REPLServer.self.eval (repl.js:122:7)
     at Interface.<anonymous> (repl.js:239:12)
     at Interface.EventEmitter.emit (events.js:95:17)

I haven't tried other node modules from the collection but I think 
similar errors would happen.

Any idea?


Thanks
Romu




More information about the rhelv6-list mailing list