Skip to content

Commit aefa30b

Browse files
committed
fix: use npm_config_yes instead of --yes for npm 6 compatibility
1 parent 03defcf commit aefa30b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

packages/create-react-native-library/src/utils/generateExampleApp.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,8 +56,9 @@ export default async function generateExampleApp({
5656
: // `npx create-expo-app example --no-install`
5757
['create-expo-app@latest', directory, '--no-install'];
5858

59-
const child = spawn('npx', ['--yes', ...args], {
59+
const child = spawn('npx', args, {
6060
cwd: dest,
61+
env: { ...process.env, npm_config_yes: 'true' },
6162
});
6263

6364
await new Promise((resolve, reject) => {

0 commit comments

Comments
 (0)