最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

javascript - The package react@15.2.1 does not satisfy its siblings' peerDependencies requirements - Stack Overflow

programmeradmin4浏览0评论

When trying to npm install I get these errors. Can't get why it's not running if I'm using the latest version of React.

npm ERR! peerinvalid The package [email protected] does not satisfy its siblings' peerDependencies requirements! npm ERR! peerinvalid Peer [email protected] wants react@^15.2.1 npm ERR! peerinvalid Peer [email protected] wants react@^0.14.5 npm ERR! peerinvalid Peer [email protected] wants react@^15.2.1 npm ERR! peerinvalid Peer [email protected] wants react@^0.14.7 || ^15.0.0-0 npm ERR! peerinvalid Peer [email protected] wants react@^0.14.0 || ^15.0.0-0 npm ERR! peerinvalid Peer [email protected] wants react@^0.14.0 || ^15.0.0-0 npm ERR! peerinvalid Peer [email protected] wants react@~15.2.0 npm ERR! peerinvalid Peer [email protected] wants react@^0.14.0 || ^15.0.0-0 npm ERR! peerinvalid Peer [email protected] wants react@^0.14.0 || ^15.0.0 npm ERR! peerinvalid Peer [email protected] wants react@^0.14.0 || ^15.0.0 npm ERR! peerinvalid Peer [email protected] wants react@^0.14.0 || ^15.0.0-rc.1

When trying to npm install I get these errors. Can't get why it's not running if I'm using the latest version of React.

npm ERR! peerinvalid The package [email protected] does not satisfy its siblings' peerDependencies requirements! npm ERR! peerinvalid Peer [email protected] wants react@^15.2.1 npm ERR! peerinvalid Peer [email protected] wants react@^0.14.5 npm ERR! peerinvalid Peer [email protected] wants react@^15.2.1 npm ERR! peerinvalid Peer [email protected] wants react@^0.14.7 || ^15.0.0-0 npm ERR! peerinvalid Peer [email protected] wants react@^0.14.0 || ^15.0.0-0 npm ERR! peerinvalid Peer [email protected] wants react@^0.14.0 || ^15.0.0-0 npm ERR! peerinvalid Peer [email protected] wants react@~15.2.0 npm ERR! peerinvalid Peer [email protected] wants react@^0.14.0 || ^15.0.0-0 npm ERR! peerinvalid Peer [email protected] wants react@^0.14.0 || ^15.0.0 npm ERR! peerinvalid Peer [email protected] wants react@^0.14.0 || ^15.0.0 npm ERR! peerinvalid Peer [email protected] wants react@^0.14.0 || ^15.0.0-rc.1

Share Improve this question asked Jul 13, 2016 at 11:56 Samuel BarbosaSamuel Barbosa 7827 silver badges18 bronze badges
Add a ment  | 

2 Answers 2

Reset to default 7

You could also update npm to version 3. The new version will ensure you don't have this issue.

That's because other packages in your project wants lower version of React, like 15.0, but not 15.2. You can read more about peerDependencies here https://nodejs/en/blog/npm/peer-dependencies/#the-solution-peer-dependencies and here https://docs.npmjs./files/package.json#peerdependencies

Solution for your problem, do not upgrade your React version till you update other libraries.

发布评论

评论列表(0)

  1. 暂无评论