microsoft / AzureSearch_JFK_Files

This repo contains the sample code of the Azure Search and Cognitive Services used to provide insights and analysis around the JFK Files.
MIT License
389 stars 225 forks source link

Getting errors while doing npm install #117

Closed saketmicrosoft closed 3 years ago

saketmicrosoft commented 3 years ago

I am getting a bunch of npm version errors while trying to setup https://github.com/Microsoft/AzureSearch_JFK_Files

npm ERR! code ERESOLVE npm ERR! ERESOLVE unable to resolve dependency tree npm ERR! npm ERR! While resolving: jfk-files@1.0.0 npm ERR! Found: webpack@3.8.1 npm ERR! node_modules/webpack npm ERR! dev webpack@"~3.8.1" from the root project npm ERR! npm ERR! Could not resolve dependency: npm ERR! peer webpack@"^4.37.0 || ^5.0.0" from webpack-dev-server@4.3.1 npm ERR! node_modules/webpack-dev-server npm ERR! dev webpack-dev-server@">=3.1.11" from the root project npm ERR! npm ERR! Fix the upstream dependency conflict, or retry npm ERR! this command with --force, or --legacy-peer-deps npm ERR! to accept an incorrect (and potentially broken) dependency resolution. npm ERR!

How to resolve these?

saketmicrosoft commented 3 years ago

npm install --legacy-peer-deps fixed all errors. we need to change the github documentation so that people can run it without wasting time.

Yazan2 commented 3 years ago

@saketmicrosoft Can you advise, please image

saketmicrosoft commented 3 years ago

Hi, I was able to solve my errors by using the option --legacy-peer-deps with npm install