Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

npm axios install problem #949

Closed
rosedalerk opened this issue Apr 23, 2023 · 2 comments
Closed

npm axios install problem #949

rosedalerk opened this issue Apr 23, 2023 · 2 comments

Comments

@rosedalerk
Copy link

rosedalerk commented Apr 23, 2023

We have a project using axios. Installing langchain using 'npm i langchain' results in the following error:

% npm i langchain
npm ERR! code ERESOLVE
npm ERR! ERESOLVE could not resolve
npm ERR! 
npm ERR! While resolving: langchain@0.0.62
npm ERR! Found: axios@1.3.5
npm ERR! node_modules/axios
npm ERR!   axios@"^1.3.5" from the root project
npm ERR! 
npm ERR! Could not resolve dependency:
npm ERR! peerOptional axios@"^0.26.0" from langchain@0.0.62
npm ERR! node_modules/langchain
npm ERR!   langchain@"*" from the root project
npm ERR! 
npm ERR! Conflicting peer dependency: axios@0.26.1
npm ERR! node_modules/axios
npm ERR!   peerOptional axios@"^0.26.0" from langchain@0.0.62
npm ERR!   node_modules/langchain
npm ERR!     langchain@"*" 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.

This is tested on a very recent version of macOS.

I will start to investigate and maybe do a PR. Or if someone beats me to it...

@rodolphoasb
Copy link

I think this is a duplicate of #863

@rosedalerk
Copy link
Author

Closed as a duplicate

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

No branches or pull requests

2 participants