From af863e0587fa13088863cd1904d49512167f7c2c Mon Sep 17 00:00:00 2001 From: Niklas Wallerstedt Date: Tue, 23 Sep 2025 23:57:53 +0200 Subject: [PATCH] fix: Update npm install command to use --os flag --- .changeset/spicy-mangos-shop.md | 5 +++++ packages/open-next/src/build/installDeps.ts | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) create mode 100644 .changeset/spicy-mangos-shop.md diff --git a/.changeset/spicy-mangos-shop.md b/.changeset/spicy-mangos-shop.md new file mode 100644 index 000000000..3837cd5df --- /dev/null +++ b/.changeset/spicy-mangos-shop.md @@ -0,0 +1,5 @@ +--- +"@opennextjs/aws": patch +--- + +Update npm install command to use --os flag diff --git a/packages/open-next/src/build/installDeps.ts b/packages/open-next/src/build/installDeps.ts index 6b4091925..96dabae06 100644 --- a/packages/open-next/src/build/installDeps.ts +++ b/packages/open-next/src/build/installDeps.ts @@ -36,7 +36,7 @@ export function installDependencies( : ""; const additionalArgs = installOptions.additionalArgs ?? ""; - const installCommand = `npm install --platform=linux ${archOption} ${targetOption} ${libcOption} ${additionalArgs} ${installOptions.packages.join(" ")}`; + const installCommand = `npm install --os=linux ${archOption} ${targetOption} ${libcOption} ${additionalArgs} ${installOptions.packages.join(" ")}`; execSync(installCommand, { stdio: "pipe", cwd: tempInstallDir,