1import spawnAsync from '@expo/spawn-async'; 2 3import { PackageManagerName } from './resolvePackageManager'; 4 5export async function installDependencies( 6 packageManager: PackageManagerName, 7 appPath: string, 8 ...args: string[] 9) { 10 await spawnAsync(packageManager, ['install', ...args], { 11 cwd: appPath, 12 stdio: 'ignore', 13 }); 14} 15