Can you add "--legacy-peer-deps" to an individual package in package.json?

Viewed 8

I want to to ignore the peer dependencies of only one of the libraries in my package.json (e.g.: theme-ui). Is there a way to add such flag to package.json?

1 Answers

I think using

--legacy-peer-deps

will allow us to install the package without meeting the peer dependency requirements.

If it doesn't work, try to use

--force will install

without regard to peer dependencies.

Hope it will be helpful. Thanks

Related