gf3 / IRC-js

The best IRC library for node.js
http://irc-js.com
The Unlicense
179 stars 33 forks source link

TypeError: path must be a string #61

Closed curious-attempt-bunny closed 11 years ago

curious-attempt-bunny commented 11 years ago

I'm following the documentation for the beta. Does this work for you?

$ npm install irc-js npm http GET https://registry.npmjs.org/irc-js npm http 304 https://registry.npmjs.org/irc-js irc-js@2.0.0-beta.1 node_modules/irc-js

$ grep -A 2 engines node_modules/irc-js/package.json "engines": { "node": ">=0.8.1" },

$ node -v v0.8.19

$ node --harmony

var irc = require("irc-js"); undefined irc.connect({ nick: "bot500" }, function(bot) { } ); TypeError: path must be a string at Object.fs.openSync (fs.js:338:18) at Object.fs.readFileSync (fs.js:182:15) at getConfig (..../node_modules/irc-js/lib/irc.js:493:35) at Object.quickConnect as connect at repl:1:5 at REPLServer.self.eval (repl.js:109:21) at rli.on.self.bufferedCmd (repl.js:258:20) at REPLServer.self.eval (repl.js:116:5) at Interface. (repl.js:248:12) at Interface.EventEmitter.emit (events.js:96:17)

gf3 commented 11 years ago

Sorry @curious-attempt-bunny, I've just pushed a more up-to-date version. Should be available on npm as well (2.0.0-beta.2).

curious-attempt-bunny commented 11 years ago

Thanks @gf3!