$ 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)
Install via:
npm install --save default-browser
Then it quits node, back to terminal.