Categories
JavaScript Answers

How to fix the upstream dependency conflict installing NPM packages with JavaScript?

Spread the love

To fix the upstream dependency conflict installing NPM packages with JavaScript, we run npm install with the --legacy-peer-deps option.

For instance, we run

npm install --legacy-peer-deps

to install all packages in package.json with the packages’ peer depdendencies.

By John Au-Yeung

Web developer specializing in React, Vue, and front end development.

Leave a Reply

Your email address will not be published. Required fields are marked *