Skip to content

Commit

Permalink
fix: add --legacy-peer-deps to next-sanity pacakge install (#7806)
Browse files Browse the repository at this point in the history
  • Loading branch information
SimeonGriggs authored Nov 13, 2024
1 parent dc87ef6 commit cb3739b
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -524,7 +524,7 @@ export default async function initSanity(
}

if (chosen === 'npm') {
await execa('npm', ['install', 'next-sanity@9'], execOptions)
await execa('npm', ['install', '--legacy-peer-deps', 'next-sanity@9'], execOptions)
} else if (chosen === 'yarn') {
await execa('npx', ['install-peerdeps', '--yarn', 'next-sanity@9'], execOptions)
} else if (chosen === 'pnpm') {
Expand Down

0 comments on commit cb3739b

Please sign in to comment.