I have a package.json that has the following modules that are conflicting:
react-routerwhich needsreact 0.13.xredbox-reactwhich needsreact@>=0.13.2 || ^0.14.0-rc1
I just did an npm install react and it installed [email protected]
I am trying to install react-bootstrap which needs react@>=0.14.0.
I have been a few solutions:
delete
node_modulesfrom all thenode_modulesof dependencies every time I updatedelete and reinstall all modules every time you face an issue
upgrade to npm 3.x which is still pre-release and
What is a good way of fixing these issues without having to do 1 or 2 which is npm version agnostic.
P.S.: All the modules referred to here have been installed locally.
react-routerneedsreact-0.13- installv0.13. Otherwise it's not clear what your actual problem is: you either satisfy the version requirements, or you don't have packages working/installing properly.