fix(core): add --legacy-peer-deps to npm installs to handle npm 7 related issues

This commit is contained in:
Victor Savkin 2021-01-27 20:46:04 -05:00
parent 55f6c11622
commit 2604711f5f

View File

@ -42,9 +42,9 @@ export function getPackageManagerCommand(
case 'npm': case 'npm':
return { return {
install: 'npm install', install: 'npm install --legacy-peer-deps',
add: 'npm install', add: 'npm install --legacy-peer-deps',
addDev: 'npm install -D', addDev: 'npm install --legacy-peer-deps -D',
rm: 'npm rm', rm: 'npm rm',
exec: 'npx', exec: 'npx',
list: 'npm ls', list: 'npm ls',