Consistently getting this error when I call "sudo npm install":
Peer react-dom@0.14.9 wants react@^0.14.9
Prior to this, I called sudo npm install react@0.14.9
and it installed without an issue.
I'm not sure why the React
still flags this issue.
My guess is that you have react-dom
under dependencies
in your package.json
but not the react
package. When you do npm install
, react-dom
is being installed and by reading the dependencies
, it realizes that you didn't include react
in it and hence the warning.
Add react
to your package.json
manually or npm install react@0.14.9 --save
.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.