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
|
@ -22,7 +22,8 @@ async function main () {
|
|||
const env = Object.assign({}, process.env, {
|
||||
npm_config_nodedir: nodeDir,
|
||||
npm_config_msvs_version: '2019',
|
||||
npm_config_arch: process.env.NPM_CONFIG_ARCH
|
||||
npm_config_arch: process.env.NPM_CONFIG_ARCH,
|
||||
npm_config_yes: 'true'
|
||||
});
|
||||
const { status: buildStatus } = cp.spawnSync(NPX_CMD, ['node-gyp', 'rebuild', '--directory', 'test', '-j', 'max'], {
|
||||
env,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue