creationix / postgres-js

The postgres backend protocol implemented in pure JS for use with node.js
122 stars 26 forks source link

Doesn't seem to be compatible with newer versions of node #2

Closed semanticart closed 14 years ago

semanticart commented 14 years ago

Trying to run the example, I get:

Error: No longer accepting filename extension in module names
    at findModulePath (node.js:437:11)
    at loadModule (node.js:555:22)
    at require (node.js:683:12)
    at Object.<anonymous> (/Users/xxx/src/postgres-js/server.js:2:16)
    at Module._compile (node.js:704:23)
    at node.js:732:20
    at fs:51:23
    at node.js:813:9

trying without the .js extension in the postgres require, I get

Error: Cannot find module 'postgres'
    at loadModule (node.js:557:15)
    at require (node.js:683:12)
    at Object.<anonymous> (/Users/xxx/src/postgres-js/server.js:2:16)
    at Module._compile (node.js:704:23)
    at node.js:732:20
    at fs:51:23
    at node.js:813:9
creationix commented 14 years ago

Yes, this module is deprecated, I have a newer version that's running today as part of the sousaball game.

http://github.com/creationix/sousaball/blob/master/lib/postgres-pure.js Note that is needs the md5 library and buffer-extras library as dependencies.

semanticart commented 14 years ago

awesome, thank you

creationix commented 14 years ago

Closing.