darlinghq / darling

Darwin/macOS emulation layer for Linux

Home Page:http://www.darlinghq.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

can not exec: "darling shell command arg" with nodejs exec function

conganwoz opened this issue · comments

Expected Result
What did you expect to happen?
function exec() should run normal as run command in normal shell
Actual Result
What did happen?
receive error with code = 1
Steps To Reproduce

  1. create simple node project that create build-in command to shell
  2. create command by using: npm install -g .
  3. run darling shell command arg using exec function require from "child_process"
    System Information
    What system are you using?
Software Version
Linux Kernel 5.10.0

Could you perhaps provide some sample code for what you're trying to do? I don't quite understand whether you're trying to use Node.js within Darling or outside of Darling to execute a command within Darling.