Skip to content

Commit 9a70280

Browse files
aldarundclarkdo
authored andcommitted
fix: window nuxt build by using cross-spawn (nuxt#3833)
node spawnSync have issues on windows and building fails with it with ENOENT error
1 parent 00ea579 commit 9a70280

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

build/package.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { resolve } from 'path'
2-
import { spawnSync } from 'child_process'
32
import EventEmitter from 'events'
3+
import { sync as spawnSync } from 'cross-spawn'
44
import consola from 'consola'
55
import { readFileSync, existsSync, readJSONSync, writeFileSync, copySync, removeSync } from 'fs-extra'
66
import { builtinsMap } from './builtins'

package.json

+1
Original file line numberDiff line numberDiff line change
@@ -138,6 +138,7 @@
138138
"babel-plugin-dynamic-import-node": "^2.0.0",
139139
"codecov": "^3.0.4",
140140
"cross-env": "^5.2.0",
141+
"cross-spawn": "^6.0.5",
141142
"eslint": "^5.4.0",
142143
"eslint-config-standard": "^12.0.0",
143144
"eslint-config-standard-jsx": "^6.0.2",

0 commit comments

Comments
 (0)