TypeError in require('couchdb').createClient(5984, 'localhost') #25

asyncanup opened this Issue Feb 5, 2011 · 6 comments


None yet

3 participants

npm install couchdb
$ node
> couchdb = require('couchdb')
{ createClient: [Function],
  parseBody: [Function],
  Database: [Function],
  USER_PREFIX: 'org.couchdb.user:' }
> client = couchdb.createClient(5984, 'localhost')
TypeError: Object.getOwnPropertyNames called on non-object
    at getOwnPropertyNames (native)
    at trait (/home/anup/.node_libraries/.npm/traits/0.4.0/package/lib/traits.js:259:13)
    at Trait (/home/anup/.node_libraries/.npm/traits/0.4.0/package/lib/traits.js:647:12)
    at Object.createClient (/home/anup/.node_libraries/.npm/couchdb/0.1.0/package/lib/couchdb.js:25:59)
    at [object Context]:1:18
    at Interface. (repl.js:144:22)
    at Interface.emit (events.js:42:17)
    at Interface._onLine (readline.js:132:10)
    at Interface._line (readline.js:387:8)
    at Interface._ttyWrite (readline.js:564:14)

please help
can't get couchdb to work AT ALL
http://localhost:5984 returns

felixge commented Feb 5, 2011

This module is no longer maintained. Your problem however seems to come from another module called 'traits'. Try uninstalling that.


but couchdb depends on traits


also, if this is not the right module to use for creating a couchdb client from node, can you point me to the right one?

felixge commented Feb 5, 2011

No, I think you are mistaken.


thanks. actually i was mistaken that 'npm install couchdb' installs 'node-couchdb'
its corrected now



This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment