Skip to content
This repository has been archived by the owner on Jun 17, 2024. It is now read-only.

Fix npm install command #4

Merged
merged 1 commit into from
Oct 13, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -450,8 +450,9 @@ export async function applyPackageOverrides(
} else if (pm === "yarn") {
await $`yarn install`;
} else if (pm === "npm") {
// TOOD(kdy1): This is required just for https://github.com/SukkaW/rollup-plugin-swc
await $`npm install --legacy-peer-deps`;
// The transitive dependencies of the linked dependencies will not be installed by `npm i` unless `--install-links` is specified.
// See https://github.com/npm/cli/issues/2339#issuecomment-1111228605
await $`npm install --install-links`;
}
}

Expand Down