Javascript 小错误

Javascript 小错误,javascript,node.js,npm,Javascript,Node.js,Npm,我正在尝试使用依赖项注入库,但即使是需要依赖项注入库的普通脚本也会抛出错误。我找不到任何讨论或与我的错误相关的内容,但由于我是node的新手,我想在向作者申诉之前检查一下我没有做任何明显错误的事情 安装电解液: npm install electrolyte 使用以下节点运行此单线应用程序,test.js: var di = require("electrolyte"); 获取此错误: util.js:555 ctor.prototype = Object.create(superCto

我正在尝试使用依赖项注入库,但即使是需要依赖项注入库的普通脚本也会抛出错误。我找不到任何讨论或与我的错误相关的内容,但由于我是node的新手,我想在向作者申诉之前检查一下我没有做任何明显错误的事情

安装电解液:

npm install electrolyte
使用以下节点运行此单线应用程序,
test.js

var di = require("electrolyte");
获取此错误:

util.js:555
  ctor.prototype = Object.create(superCtor.prototype, {
                      ^
TypeError: Object prototype may only be an Object or null
    at Function.create (native)
    at Object.exports.inherits (util.js:555:27)
    at Object.<anonymous> (/home/vagrant/tmp/node_modules/electrolyte/lib/container.js:42:6)
    at Module._compile (module.js:456:26)
    at Object.Module._extensions..js (module.js:474:10)
    at Module.load (module.js:356:32)
    at Function.Module._load (module.js:312:12)
    at Module.require (module.js:364:17)
    at require (module.js:380:17)
    at Object.<anonymous> (/home/vagrant/tmp/node_modules/electrolyte/lib/index.js:1:79)
util.js:555
ctor.prototype=Object.create(supercor.prototype{
^
TypeError:对象原型只能是对象或null
在Function.create(本机)
在Object.exports.inherits(util.js:555:27)
at对象。(/home/vagrant/tmp/node_modules/electronite/lib/container.js:42:6)
在模块处编译(Module.js:456:26)
在Object.Module.\u extensions..js(Module.js:474:10)
在Module.load(Module.js:356:32)
在Function.Module.\u加载(Module.js:312:12)
at Module.require(Module.js:364:17)
根据需要(模块js:380:17)
at对象。(/home/vagrant/tmp/node_modules/electronite/lib/index.js:1:79)

我已经在两个环境中尝试过(包中ubuntu上的node,brew中的mac)具有相同的结果。我可以安装并要求其他库而不会出现问题。node和Solution的版本似乎是最新的。

看起来我通过brew和debian软件包获得的node版本非常旧。接下来,添加node自己的debian存储库更正了问题。

但是如何将其移植到node v0.10.25 ?