Skip to content

Commit 9018704

Browse files
fix: Update npm install command to use --os flag (opennextjs#985)
1 parent 3428a5d commit 9018704

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

.changeset/spicy-mangos-shop.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@opennextjs/aws": patch
3+
---
4+
5+
Update npm install command to use --os flag

packages/open-next/src/build/installDeps.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ export function installDependencies(
3636
: "";
3737

3838
const additionalArgs = installOptions.additionalArgs ?? "";
39-
const installCommand = `npm install --platform=linux ${archOption} ${targetOption} ${libcOption} ${additionalArgs} ${installOptions.packages.join(" ")}`;
39+
const installCommand = `npm install --os=linux ${archOption} ${targetOption} ${libcOption} ${additionalArgs} ${installOptions.packages.join(" ")}`;
4040
execSync(installCommand, {
4141
stdio: "pipe",
4242
cwd: tempInstallDir,

0 commit comments

Comments
 (0)