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 install results in errors #24

Open
flatsiedatsie opened this issue May 14, 2024 · 2 comments
Open

npm install results in errors #24

flatsiedatsie opened this issue May 14, 2024 · 2 comments

Comments

@flatsiedatsie
Copy link

I cloned the github repo and ran npm i to install it. This resulted in the following:

npm ERR! code ERESOLVE
npm ERR! ERESOLVE could not resolve
npm ERR! 
npm ERR! While resolving: @langchain/[email protected]
npm ERR! Found: [email protected]
npm ERR! node_modules/voy-search
npm ERR!   voy-search@"^0.6.3" from the root project
npm ERR! 
npm ERR! Could not resolve dependency:
npm ERR! peerOptional voy-search@"0.6.2" from @langchain/[email protected]
npm ERR! node_modules/@langchain/community
npm ERR!   @langchain/community@"^0.0.57" from the root project
npm ERR!   @langchain/community@"~0.0.47" from [email protected]
npm ERR!   node_modules/langchain
npm ERR!     langchain@"^0.1.28" from the root project
npm ERR! 
npm ERR! Conflicting peer dependency: [email protected]
npm ERR! node_modules/voy-search
npm ERR!   peerOptional voy-search@"0.6.2" from @langchain/[email protected]
npm ERR!   node_modules/@langchain/community
npm ERR!     @langchain/community@"^0.0.57" from the root project
npm ERR!     @langchain/community@"~0.0.47" from [email protected]
npm ERR!     node_modules/langchain
npm ERR!       langchain@"^0.1.28" 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.
@jacoblee93
Copy link
Owner

Gotcha - for now you can use yarn/pnpm or the legacy peer dep option:

https://stackoverflow.com/questions/66239691/what-does-npm-install-legacy-peer-deps-do-exactly-when-is-it-recommended-wh

Will see if I can resolve later

@flatsiedatsie
Copy link
Author

Of course I opted for the force option :-D

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