Skip to content

Commit

Permalink
fix: npm7 peerDependecies
Browse files Browse the repository at this point in the history
  • Loading branch information
rigor789 committed Mar 11, 2021
1 parent 04202dc commit 5e2688f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/node-package-manager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ export class NodePackageManager extends BasePackageManager {
const jsonContentBefore = this.$fs.readJson(packageJsonPath);

const flags = this.getFlagsString(config, true);
let params = ["install"];
let params = ["install", "--legacy-peer-deps"];
const isInstallingAllDependencies = packageName === pathToSave;
if (!isInstallingAllDependencies) {
params.push(packageName);
Expand Down

0 comments on commit 5e2688f

Please sign in to comment.