build: update npx.py to support npx@7 (#26662)
* build: update npx.py to support npx@7 * build: set npm_config_yes for all npx callsites
This commit is contained in:
parent
e455a79218
commit
b894151745
6 changed files with 17 additions and 6 deletions
|
@ -11,7 +11,11 @@ if (process.mainModule === module) {
|
|||
const NPX_CMD = process.platform === 'win32' ? 'npx.cmd' : 'npx';
|
||||
|
||||
const child = cp.spawn(NPX_CMD, [`yarn@${YARN_VERSION}`, ...process.argv.slice(2)], {
|
||||
stdio: 'inherit'
|
||||
stdio: 'inherit',
|
||||
env: {
|
||||
...process.env,
|
||||
npm_config_yes: 'true'
|
||||
}
|
||||
});
|
||||
|
||||
child.on('exit', code => process.exit(code));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue