Your version of react does not meet the requirements of react-collapse . This does not mean that both packages cannot work together, just try and if everything works as intended.
But if you need to fix it, you have two ways to do it:
First way
Remove the line "react": "0.14.9", and run npm i --save react . NPM will install the latest response package. The error must be fixed.
Second way
If you really need to use version 0.14.9 , you should find a react-collapse version that is compatible with your responsejs version.
To do this, enter the npm show react-collapse versions console npm show react-collapse versions - an array entries will appear.
Now we must select one earlier version and check the peerDependencies our selected package.
We use the npm view react-collapse@3.0.0 command, the result will be

Since we selected the version @3.0.0 , which is fine in our case, we need to install it. The following command will do the npm install --save react-collapse@3.0.0 job.
UPDATE
If the above solution does not work. Please install missing peerDependencies manually via npm i --save <package-name> .
Explaination:
Check the npm version by running npm -v . If your version is> 3, then you need to install peer dependencies. I assume this is so, version 3.0.0 was released in mid-2015.
The automatic installation of peer dependencies was explicitly removed using npm 3, as this causes more problems than it tried to solve.
Please read the official npm changelog , you are looking for the "Breaking Change" section.
There is a CLI tool that automatically installs the NPM package and its peer dependencies. You may be interested.