Skip to content

Exec not working in Electron ! #726

@akshaygarg834

Description

@akshaygarg834

shell.exec not working showing this error

Uncaught Error: exec: internal error
at Object.error (common.js:130)
at Object._exec (exec.js:292)
at Object.eval [as exec] (common.js:334)
at dialog.showOpenDialog.filepaths (Accordion.js?36f0:53)
at CallbacksRegistry.apply (C:\Users\aksgarg\Desktop\JARVIS\node_modules\electron\dist\resources\electron.asar\common\api\callb…:48)
at EventEmitter. (C:\Users\aksgarg\Desktop\JARVIS\node_modules\electron\dist\resources\electron.asar\renderer\api\rem…:299)
at emitThree (events.js:116)
at EventEmitter.emit (events.js:197)

let shell=require('shelljs'); shell.config.fatal=true; shell.cd(require('path').resolve(filepaths[0])); shell.exec(git clone ${clone_url});

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