diff --git a/packages/next/lib/patch-incorrect-lockfile.ts b/packages/next/lib/patch-incorrect-lockfile.ts index 470e67e6e963..02026779bd73 100644 --- a/packages/next/lib/patch-incorrect-lockfile.ts +++ b/packages/next/lib/patch-incorrect-lockfile.ts @@ -87,7 +87,7 @@ export async function patchIncorrectLockfile(dir: string) { await promises.writeFile( lockfilePath, - JSON.stringify(lockfileParsed, null, 2) + `${JSON.stringify(lockfileParsed, null, 2)}\n` ) Log.warn( 'Lockfile was successfully patched, please run "npm install" to ensure @next/swc dependencies are downloaded'