包反应不满足其兄弟姐妹

时间:2016-04-14 20:25:34

标签: node.js meteor reactjs npm

尝试部署到Galaxy或运行任何流量命令时,不断收到此错误。我试过删除npm-container文件夹。删除并重新添加meteorhacks:npm。没有bueno :(

   While building package npm-container:
   error: couldn't install npm packages from npm-shrinkwrap: Command failed: npm WARN package.json packages-for-meteor-npm-container@0.0.0 No description
   npm WARN package.json packages-for-meteor-npm-container@0.0.0 No repository field.
   npm WARN package.json packages-for-meteor-npm-container@0.0.0 No README data
   npm WARN engine escodegen@1.8.0: wanted: {"node":">=0.12.0"} (current: {"node":"0.10.40","npm":"1.4.28"})
   npm ERR! peerinvalid The package react does not satisfy its siblings' peerDependencies requirements!
   npm ERR! peerinvalid Peer newforms@0.13.2 wants react@>=0.14.0
   npm ERR! peerinvalid Peer newforms-bootstrap@2.0.0 wants react@>=0.13.0
   npm ERR! peerinvalid Peer react-bootstrap-modal@2.0.0 wants react@^0.14.0
   npm ERR! peerinvalid Peer react-dom@0.14.6 wants react@^0.14.6

2 个答案:

答案 0 :(得分:0)

您收到此错误是因为您有多个软件包依赖不同版本的React作为peer dependency。当一个包具有定义的对等依赖关系时,这意味着它们不会自己安装该包,但是会预期你已经将它安装为主依赖关系。

离开semver,实际上看起来所有这些对等依赖项应该是兼容的,所以可能发生的是你安装的旧版本的React与你的主要依赖项兼容但低于对等依赖。我会检查以确保您的主要React依赖项至少为^0.14.6,然后擦除node_modules,然后运行另一个npm install

答案 1 :(得分:0)

您可以尝试更新上一个npm

sudo npm install npm -g