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

Bug with yarn install #473

Closed
youngjuning opened this issue Sep 9, 2021 · 2 comments
Closed

Bug with yarn install #473

youngjuning opened this issue Sep 9, 2021 · 2 comments

Comments

@youngjuning
Copy link

youngjuning commented Sep 9, 2021

execa

const execa = require("execa");

execa.commandSync('yarn install',{
  stdout: "inherit",
  shell: true,
})

image

exec-sh、child-process

const execSh = require('exec-sh').promise;

execSh('yarn install',{
  shell: true
})
const { spawnSync } = require('child_process');

spawnSync("yarn install",{
  shell: true,
  stdio: 'inherit'
})

image

shelljs

const shell = require("shelljs");
shell.exec("yarn install");

image

@ehmicky
Copy link
Collaborator

ehmicky commented Sep 9, 2021

Hi @youngjuning,

Thanks for reaching out.

Is the only difference the absence of the warning lines? Would the following work?

execa.commandSync('yarn install', {
  stdout: "inherit",
  stderr: "inherit",
  shell: true,
})

@youngjuning
Copy link
Author

Hi @youngjuning,

Thanks for reaching out.

Is the only difference the absence of the warning lines? Would the following work?

execa.commandSync('yarn install', {
  stdout: "inherit",
  stderr: "inherit",
  shell: true,
})

Thanks, just work fine

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