在尝试部署到Galaxy或为此运行任何meteor命令时,不断收到此错误。我已经尝试删除npm-container文件夹。删除并重新添加流星黑客:npm。没问题:(
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发布于 2016-04-15 05:33:16
您收到此错误是因为您有几个包依赖于不同版本的React作为peer dependency。当程序包定义了对等依赖关系时,这意味着他们不会安装该程序包本身,而是期望您已经将其作为主依赖关系安装。
离开semver,实际上看起来所有这些对等依赖项都应该是兼容的,所以可能发生的情况是,您安装了与主要依赖项兼容但低于对等依赖项的较旧版本的React。我会检查以确保您的主要React依赖项至少是^0.14.6,清除node_modules,然后运行另一个npm install。
发布于 2016-06-05 11:18:50
您可以尝试更新上一个npm
sudo npm install npm -ghttps://stackoverflow.com/questions/36633313
复制相似问题