Skip to content

Configure --legacy-peer-deps with .npmrc #283

Answered by darcyclarke
kentcdodds asked this question in RRFC
Discussion options

You must be logged in to vote

@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 running npm config set legacy-peer-deps true with an optional -g to set it globally.

Replies: 3 comments 12 replies

Comment options

You must be logged in to vote
9 replies
@ljharb
Comment options

@ryders
Comment options

@ljharb
Comment options

@ryders
Comment options

@ljharb
Comment options

Answer selected by darcyclarke
Comment options

You must be logged in to vote
2 replies
@ljharb
Comment options

@ruyadorno
Comment options

Comment options

You must be logged in to vote
1 reply
@entranced
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
RRFC
Labels
None yet