Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ENOTDIR on spawn exits app #53

Open
cdaringe opened this issue May 25, 2016 · 1 comment
Open

ENOTDIR on spawn exits app #53

cdaringe opened this issue May 25, 2016 · 1 comment

Comments

@cdaringe
Copy link

cdaringe commented May 25, 2016

hello:

currently checkOthers does the following:

function checkOthers( name, callback ) {
    var process = spawn( name, [ '--version' ] ),
        re = browsers[ name ].re,
        data = '';

    process.stdout.on( 'data', function( buf ) {
        data += buf;
    } );

however, the spawn command can fail with ENOTDIR. see node-inspector/node-inspector#807 for more on that (and see this libs failure output). an update to the spawn call as follows solves my issue:

function checkOthers( name, callback ) {
    try {
        var process = spawn( name, [ '--version' ] ),
              re = browsers[ name ].re,
              data = '';
    } catch(err) {
      return callback(err)
    }

thanks

@mitchhentges
Copy link

This should be fixed in browser-launcher2 once #30 is merged

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants