@@ -70,7 +70,7 @@ if (!fs.existsSync('node_modules')) {
70
70
binNpm = 'npm.cmd' ;
71
71
}
72
72
73
- spawnedObj = spawnSync ( binNpm , [ 'install' , '--ignore-scripts' ] , { stdio : 'inherit' } ) ;
73
+ spawnedObj = spawnSync ( binNpm , [ 'install' , '--ignore-scripts' ] , { shell : true , stdio : 'inherit' } ) ;
74
74
}
75
75
76
76
if ( spawnedObj && spawnedObj . stderr ) {
@@ -113,12 +113,15 @@ if (isWindows) {
113
113
}
114
114
115
115
// Copy over the base profile source dir.
116
- const spawnedObj1 =
117
- spawnSync ( binGulp , [ '--gulpfile' , path . resolve ( fepperPath , 'tasker.js' ) , 'install:copy-base' ] , { stdio : 'inherit' } ) ;
116
+ const spawnedObj1 = spawnSync (
117
+ binGulp ,
118
+ [ '--gulpfile' , path . resolve ( fepperPath , 'tasker.js' ) , 'install:copy-base' ] ,
119
+ { shell : true , stdio : 'inherit' }
120
+ ) ;
118
121
119
122
if ( spawnedObj1 . stderr ) {
120
123
fs . appendFileSync ( installLog , `${ spawnedObj1 . stderr } \n` ) ;
121
124
}
122
125
123
126
// Complete installation. run/install.js handles its own logging so no need to log here.
124
- spawnSync ( 'node' , [ path . resolve ( 'run' , 'install.js' ) ] , { stdio : 'inherit' } ) ;
127
+ spawnSync ( 'node' , [ path . resolve ( 'run' , 'install.js' ) ] , { shell : true , stdio : 'inherit' } ) ;
0 commit comments