ethersphere / bee-js

Javascript client library for connecting to Bee decentralised storage

Home Page:https://bee-js.ethswarm.org/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Cannot install bee-js with npm 7.5.2

Cafe137 opened this issue · comments

mkdir bee-js-npm-test
cd bee-js-npm-test 
npm init -y
npm i npm@7.5.2 -g                          
npm i @ethersphere/bee-js@5.0.0

Yields this error:

npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR! 
npm ERR! Found: web-streams-polyfill@4.0.0-beta.3
npm ERR! node_modules/web-streams-polyfill
npm ERR!   web-streams-polyfill@"^4.0.0-beta.1" from @ethersphere/bee-js@5.0.0
npm ERR!   node_modules/@ethersphere/bee-js
npm ERR!     @ethersphere/bee-js@"5.0.0" from the root project
npm ERR! 
npm ERR! Could not resolve dependency:
npm ERR! peerOptional web-streams-polyfill@">=2.0.0" from ky-universal@0.8.2
npm ERR! node_modules/ky-universal
npm ERR!   ky-universal@"^0.8.2" from @ethersphere/bee-js@5.0.0
npm ERR!   node_modules/@ethersphere/bee-js
npm ERR!     @ethersphere/bee-js@"5.0.0" 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! 
npm ERR! See /Users/aron/.npm/eresolve-report.txt for a full report.

npm ERR! A complete log of this run can be found in:
npm ERR!     /Users/aron/.npm/_logs/2022-08-11T09_35_09_841Z-debug.log

node -v
v16.13.1
npm -v
7.5.2