iriscouch / audit_couchdb

Detect security issues, large or small, in a CouchDB server
Apache License 2.0
37 stars 4 forks source link

Error: The "sys" module is now called "util". #2

Open pulkitsinghal opened 12 years ago

pulkitsinghal commented 12 years ago

Node Version:

node --version
v0.7.10-pre

NPM install info:

$ sudo npm install -g audit_couchdb
audit_couchdb@0.3.1 /usr/local/lib/node_modules/audit_couchdb
├── defaultable@0.5.0
├── optimist@0.2.6 (wordwrap@0.0.2)
└── probe_couchdb@0.7.1 (defaultable@0.7.0, request@2.2.0, log4js@0.3.9, uglify-js@1.1.1)

Command that I ran and its stack trace:

$ audit_couchdb https://admin:secret@localhost:5984
sys.js:1
throw new Error(
          ^
Error: The "sys" module is now called "util".
    at sys.js:1:69
    at NativeModule.compile (node.js:586:5)
    at Function.NativeModule.require (node.js:554:18)
    at Function.Module._load (module.js:297:25)
    at Module.require (module.js:362:17)
    at require (module.js:378:17)
    at Object.<anonymous> (/usr/local/lib/node_modules/audit_couchdb/node_modules/probe_couchdb/node_modules/log4js/lib/log4js.js:50:9)
    at Module._compile (module.js:449:26)
    at Object.Module._extensions..js (module.js:467:10)
    at Module.load (module.js:356:32)
pulkitsinghal commented 12 years ago

Change from 'sys' to 'util':

$ sudo vi /usr/local/lib/node_modules/audit_couchdb/node_modules/probe_couchdb/node_modules/log4js/lib/log4js.js