sindresorhus / default-browser

Get the default browser
MIT License
54 stars 9 forks source link

TypeError: undefined is not a function (OS X 10.9.1) #1

Closed JuanitoFatas closed 10 years ago

JuanitoFatas commented 10 years ago

Install via: npm install --save default-browser

$ node -v
v0.10.24

$ node
> var defaultBrowser = require('default-browser');
undefined
> defaultBrowser();
undefined
>
/Users/Juanito/node_modules/default-browser/index.js:16
            cb(null, {
            ^
TypeError: undefined is not a function
    at /Users/Juanito/node_modules/default-browser/index.js:16:4
    at /Users/Juanito/node_modules/default-browser/node_modules/bundle-name/index.js:12:3
    at ChildProcess.exithandler (child_process.js:635:7)
    at ChildProcess.EventEmitter.emit (events.js:98:17)
    at maybeClose (child_process.js:735:16)
    at Socket.<anonymous> (child_process.js:948:11)
    at Socket.EventEmitter.emit (events.js:95:17)
    at Pipe.close (net.js:466:12)

Then it quits node, back to terminal.

JuanitoFatas commented 10 years ago

Sorry. New to node. Thank you for quick update.

sindresorhus commented 10 years ago

My fault. readme was incorrect ;)