flume icon indicating copy to clipboard operation
flume copied to clipboard

Flume install error

Open navanshu opened this issue 3 years ago • 5 comments

I am getting this error. I don't want to use force command as It might conflict with other npm packages. Please fix this.

npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR! 
npm ERR! While resolving: [email protected]
npm ERR! Found: [email protected]
npm ERR! node_modules/react
npm ERR!   react@"^17.0.2" from the root project
npm ERR! 
npm ERR! Could not resolve dependency:
npm ERR! peer react@"^16.13.1" from [email protected]
npm ERR! node_modules/flume
npm ERR!   flume@"*" 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.

navanshu avatar Oct 13 '21 10:10 navanshu

Thanks for reporting I'll take a look at this. Is this just a clean install in a new project?

chrisjpatty avatar Oct 13 '21 17:10 chrisjpatty

It does with npm. If i try run npm up it gives the same error. It was installed in the repo before i uninstalled it before updating other libraries. Then reinstalled it. It happened after switching to latest npm 8 I guess. It was fine before

navanshu avatar Oct 14 '21 03:10 navanshu

I am having this same issue

francisbitontistudio avatar Nov 14 '21 23:11 francisbitontistudio

@francisbitontistudio A temporary fix would be to use npm install hooks,

preinstall: unintsall flume,
postinstall: install flume,

I am facing multiple issues with flume on react. I would advise not to update react further V17.0.0

navanshu avatar Nov 15 '21 10:11 navanshu

you can install force install the package with this comment npm install flume --force. that works.

silicon-ninja avatar Dec 21 '21 09:12 silicon-ninja

Same issue.

npm ERR! Found: [email protected] npm ERR! node_modules/react npm ERR! react@"^18.2.0" from the root project npm ERR! npm ERR! Could not resolve dependency: npm ERR! peer react@"^17.0.2" from [email protected] npm ERR! node_modules/flume npm ERR! flume@"*" from the root project

Fix: I tried Yarn install instead and it worked, kinda. While Flume was installed, my AWS Amplify site crashed and after 20 minutes of digging around, I seen a comment that made me think I should try to Yarn install Amplify again and that got everything working.

JustinB-AB avatar Oct 26 '22 21:10 JustinB-AB

Add the following to package.json

  "overrides": {
    "flume": {
      "react": "$react",
      "react-dom": "$react-dom"
    },
    "@reach/utils": {
      "react": "$react",
      "react-dom": "$react-dom"
    }
  }

atwright147 avatar Mar 06 '23 17:03 atwright147