Skip to content

Commit

Permalink
fix: spawn scripts with node, fix modern mode with Yarn 2 (Berry) (#5320
Browse files Browse the repository at this point in the history
  • Loading branch information
sodatea committed Mar 27, 2020
1 parent f1bdf73 commit ebcee9a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/@vue/cli-service/lib/commands/build/index.js
Expand Up @@ -62,7 +62,7 @@ module.exports = (api, options) => {
// spawn sub-process of self for modern build
const { execa } = require('@vue/cli-shared-utils')
const cliBin = require('path').resolve(__dirname, '../../../bin/vue-cli-service.js')
await execa(cliBin, ['build', ...rawArgs], {
await execa('node', [cliBin, 'build', ...rawArgs], {
stdio: 'inherit',
env: {
VUE_CLI_MODERN_BUILD: true
Expand Down

0 comments on commit ebcee9a

Please sign in to comment.