我已经使用npm安装了React包,方法是将它放在package.json
文件中,如下所示:
"react": "~0.13.3"
但是,当我构建项目时,我从npm得到以下错误:
npm ERR! code EPEERINVALID
npm ERR! peerinvalid The package react does not satisfy its siblings' peerDependencies requirements!
npm ERR! peerinvalid Peer react-modal@0.1.0 wants react@>=0.12.0
但如果react-modal
需要react@>=0.12.0
并且我"react": "~0.13.3"
,我认为没有任何问题!?