feat(core): remove usage of --legacy-peer-deps (#16271)
This commit is contained in:
parent
dc8711d817
commit
afcf7ba19f
@ -132,8 +132,8 @@ export function getPackageManagerCommand({
|
||||
runUninstalledPackage: `npx --yes`,
|
||||
install: 'npm install',
|
||||
ciInstall: 'npm ci',
|
||||
addProd: `npm install --legacy-peer-deps`,
|
||||
addDev: `npm install --legacy-peer-deps -D`,
|
||||
addProd: `npm install`,
|
||||
addDev: `npm install -D`,
|
||||
list: 'npm ls --depth 10',
|
||||
runLerna: `npx lerna`,
|
||||
},
|
||||
|
||||
@ -62,8 +62,6 @@ export function getPackageManagerCommand(
|
||||
};
|
||||
|
||||
case 'npm':
|
||||
process.env.npm_config_legacy_peer_deps =
|
||||
process.env.npm_config_legacy_peer_deps ?? 'true';
|
||||
return {
|
||||
install: 'npm install --silent --ignore-scripts',
|
||||
exec: 'npx',
|
||||
|
||||
@ -78,7 +78,7 @@ function ensureUpToDateInstallation() {
|
||||
},
|
||||
})
|
||||
);
|
||||
cp.execSync('npm i --legacy-peer-deps', {
|
||||
cp.execSync('npm i', {
|
||||
cwd: path.dirname(installationPath),
|
||||
stdio: 'inherit',
|
||||
});
|
||||
|
||||
@ -87,8 +87,6 @@ export function getPackageManagerCommand(
|
||||
};
|
||||
},
|
||||
npm: () => {
|
||||
process.env.npm_config_legacy_peer_deps ??= 'true';
|
||||
|
||||
return {
|
||||
install: 'npm install',
|
||||
ciInstall: 'npm ci',
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user