Skip to content

Commit

Permalink
fix(core): use legacy peer deps during migrate process (#16745)
Browse files Browse the repository at this point in the history
  • Loading branch information
FrozenPandaz authored May 3, 2023
1 parent 5b99313 commit 9bdf22f
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions packages/nx/src/command-line/migrate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1328,6 +1328,11 @@ function showConnectToCloudMessage() {

function runInstall() {
const pmCommands = getPackageManagerCommand();

// TODO: remove this
if (detectPackageManager() === 'npm') {
process.env.npm_config_legacy_peer_deps ??= 'true';
}
output.log({
title: `Running '${pmCommands.install}' to make sure necessary packages are installed`,
});
Expand Down

1 comment on commit 9bdf22f

@vercel
Copy link

@vercel vercel bot commented on 9bdf22f May 3, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

nx-dev – ./

nx-dev-nrwl.vercel.app
nx-dev-git-master-nrwl.vercel.app
nx-five.vercel.app
nx.dev

Please sign in to comment.