Skip to content
This repository was archived by the owner on Jan 6, 2023. It is now read-only.
This repository was archived by the owner on Jan 6, 2023. It is now read-only.

Error: spawn ENOTDIR  #131

@an-rahulpandey

Description

@an-rahulpandey

I am getting this error -

Caught exception:
 Error: spawn ENOTDIR
    at exports._errnoException (util.js:907:11)
    at ChildProcess.spawn (internal/child_process.js:298:11)
    at Object.exports.spawn (child_process.js:362:9)
    at spawn (/home/rahul/.nvm/versions/node/v4.6.1/lib/node_modules/ionic/node_modules/ionic-app-lib/node_modules/cross-spawn/index.js:17:18)
    at getCommandInfo (/home/rahul/.nvm/versions/node/v4.6.1/lib/node_modules/ionic/node_modules/ionic-app-lib/lib/info.js:48:14)
    at Object.gatherInfo (/home/rahul/.nvm/versions/node/v4.6.1/lib/node_modules/ionic/node_modules/ionic-app-lib/lib/info.js:131:5)
    at Object.doRuntimeCheck (/home/rahul/.nvm/versions/node/v4.6.1/lib/node_modules/ionic/lib/cli.js:692:17)
    at Object.run (/home/rahul/.nvm/versions/node/v4.6.1/lib/node_modules/ionic/lib/cli.js:51:9)
    at Object.<anonymous> (/home/rahul/.nvm/versions/node/v4.6.1/lib/node_modules/ionic/bin/ionic:13:10)
    at Module._compile (module.js:409:26) 

Mind letting us know? https://github.com/driftyco/ionic-cli/issues

As a workaround I commented out this two lines -

Commented out this two lines-
https://github.com/driftyco/ionic-app-lib/blob/master/lib/info.js#L131
https://github.com/driftyco/ionic-app-lib/blob/master/lib/info.js#L132

//getCommandInfo('ios-deploy', ['--version']), 
//getCommandInfo('ios-sim', ['--version']),

I have also opened the issue here -
ionic-team/ionic-cli#1653

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions