react icon indicating copy to clipboard operation
react copied to clipboard

Npm install peerDependencies fail on update to 0.14.2 - fails with its own react-dom

Open AlexHandy1 opened this issue 11 years ago • 6 comments

Updated react to latest build in order to use the react-d3-components library which had a hard dependency and now I get these errors. All the versioning below seems as though it should pass the corresponding versioning logic. Have uninstalled and reinstalled all node_modules, make sure have latest versions but nothing working.

npm ERR! peerinvalid The package [email protected] does not satisfy its siblings' peerDependencies requirements!
npm ERR! peerinvalid Peer [email protected] wants [email protected]
npm ERR! peerinvalid Peer [email protected] wants react@^0.13.0
npm ERR! peerinvalid Peer [email protected] wants react@>=0.13.3 || ^0.14.0-rc1
npm ERR! peerinvalid Peer [email protected] wants react@^0.14.2

AlexHandy1 avatar Nov 17 '15 14:11 AlexHandy1

I always find these confusing as hell, but react-leaflet is announcing itself as not compatible with React 0.14 and that's probably the source of the problem.

npm ERR! peerinvalid Peer [email protected] wants react@^0.13.0

syranide avatar Nov 17 '15 15:11 syranide

thanks for responding. Looks like that's not the issue though - see release v0.8.0 https://github.com/PaulLeCam/react-leaflet/releases

AlexHandy1 avatar Nov 17 '15 15:11 AlexHandy1

@AlexHandy1 It's not trying to install 0.8 for you though, possibly locked dependency?

syranide avatar Nov 17 '15 15:11 syranide

@syranide - good spot. Strange given it has the '^' caret. Maybe that will solve one of the errors. Installing react-dom as a separate npm package has also helped resolve the react-dom error

AlexHandy1 avatar Nov 17 '15 15:11 AlexHandy1

@AlexHandy1 0-versions are special.

syranide avatar Nov 17 '15 16:11 syranide

Closing this out since it's a not a React issue but feel free to continue working through it here.

zpao avatar Nov 17 '15 17:11 zpao