Why is nodejs execFile’s partial results in stderr

  node.js, question

Use execFile to call a shell script that executesgit pullCommand, the result is partly in stderr.



  1. Stderr is error output

  2. Try to execute the script./scripts/pull.sh [repositoryLocation] [repositoryCloneUrl] 2>err.log
    Of course, two[]The parameter should be replaced by the address you really use.

  3. Check to see if err.log also has logs.

  4. If so, there may be a problem with your script, orgit pullThe order thinks that your execution is wrong.