Configure --legacy-peer-deps with .npmrc #283
-
I'd love it if I could configure npm (globally and per project) with the Proposed config name: This could be in wherever |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 12 replies
-
@kentcdodds Hey Kent! This should already be possible with setting the |
Beta Was this translation helpful? Give feedback.
-
I just ran the command |
Beta Was this translation helpful? Give feedback.
-
npm config set legacy-peer-deps true : what happens if I run this command |
Beta Was this translation helpful? Give feedback.
@kentcdodds Hey Kent! This should already be possible with setting the
legacy-peer-deps
config (ref. https://docs.npmjs.com/cli/v7/using-npm/config#legacy-peer-deps). You can define it as a boolean in your local project or global.npmrc
file by runningnpm config set legacy-peer-deps true
with an optional-g
to set it globally.