Skip to content

Commit ebcee9a

Browse files
authored
fix: spawn scripts with node, fix modern mode with Yarn 2 (Berry) (#5320)
See yarnpkg/berry#964 (comment)
1 parent f1bdf73 commit ebcee9a

File tree

1 file changed

+1
-1
lines changed
  • packages/@vue/cli-service/lib/commands/build

1 file changed

+1
-1
lines changed

packages/@vue/cli-service/lib/commands/build/index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ module.exports = (api, options) => {
6262
// spawn sub-process of self for modern build
6363
const { execa } = require('@vue/cli-shared-utils')
6464
const cliBin = require('path').resolve(__dirname, '../../../bin/vue-cli-service.js')
65-
await execa(cliBin, ['build', ...rawArgs], {
65+
await execa('node', [cliBin, 'build', ...rawArgs], {
6666
stdio: 'inherit',
6767
env: {
6868
VUE_CLI_MODERN_BUILD: true

0 commit comments

Comments
 (0)