未满足的 WebPack 对等依赖问题 [英] Unmet WebPack peer dependencies issues

查看:114
本文介绍了未满足的 WebPack 对等依赖问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

所以我有一个奇怪的问题,我正在尝试在我在 github 上找到的 react/redux 样板解决方案上进行 npm 安装,但是我遇到了一些未满足的对等依赖问题.超级奇怪的是,我阅读它的方式,这些都不是问题......我错过了什么?

So i have a wierd issue, i am trying to do an npm install on a react/redux boilerplate solution i found on github however i am getting some unmet peer dependency issues. The super wierd thing though is that the way I read it, none of these are an issue... what am i missing?

    npm ERR! node v4.4.5
    npm ERR! npm  v2.15.5
    npm ERR! code EPEERINVALID

    npm ERR! peerinvalid The package webpack@2.1.0-beta.21 does not satisfy its siblings' peerDependencies requirements!
    npm ERR! peerinvalid Peer babel-loader@6.2.5 wants webpack@1 || ^2.1.0-beta
    npm ERR! peerinvalid Peer extract-text-webpack-plugin@2.0.0-beta.3 wants webpack@^2.1.0-beta
    npm ERR! peerinvalid Peer sass-loader@4.0.1 wants webpack@^1.12.6 || ^2.1.0-beta
    npm ERR! peerinvalid Peer webpack-dev-middleware@1.6.1 wants webpack@1 || ^2.1.0-beta
    npm ERR! peerinvalid Peer webpack-dashboard@0.1.8 wants webpack@*

推荐答案

在你运行的 npm 版本中,他们对对等依赖关系非常严格.

In the version if npm you are running, they were very strict about peer dependencies.

在 npm 3+ 中,这会让你下载 webpack 2.2RC 而不会出现安装失败.

In npm 3+ this will let you download webpack 2.2RC without your install failing.

你也可以纱线!npm install -g yarn.然后只需运行 yarn install !!!

You can also you yarn as well! npm install -g yarn. Then simply run yarn install!!!

这篇关于未满足的 WebPack 对等依赖问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆