fix: EINVAL when spawning cmd files on Windows (#41893)
fix: EINVAL when spawning on Windows
This commit is contained in:
		
					parent
					
						
							
								67ba30402b
							
						
					
				
			
			
				commit
				
					
						c4aeb17245
					
				
			
		
					 5 changed files with 12 additions and 6 deletions
				
			
		| 
						 | 
				
			
			@ -221,7 +221,8 @@ async function installSpecModules (dir) {
 | 
			
		|||
  const { status } = childProcess.spawnSync(NPX_CMD, [`yarn@${YARN_VERSION}`, 'install', '--frozen-lockfile'], {
 | 
			
		||||
    env,
 | 
			
		||||
    cwd: dir,
 | 
			
		||||
    stdio: 'inherit'
 | 
			
		||||
    stdio: 'inherit',
 | 
			
		||||
    shell: process.platform === 'win32'
 | 
			
		||||
  });
 | 
			
		||||
  if (status !== 0 && !process.env.IGNORE_YARN_INSTALL_ERROR) {
 | 
			
		||||
    console.log(`${fail} Failed to yarn install in '${dir}'`);
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue