webpack和Babel包问题:NPM“UNMET PEER DEPENDENCY”错误

时间:2017-05-30 12:57:29

标签: node.js npm webpack babel

我正在尝试安装反应样板,它有以下包:

的package.json

{
  "name": "learn-react",
  "version": "1.0.0",
  "description": "",
  "author": "Erez Tall",
  "license": "ISC",
  "devDependencies": {
    "axios": "^0.9.1",
    "babel-core": "^6.3.13",
    "babel-loader": "^6.2.0",
    "babel-preset-es2015": "^6.5.0",
    "babel-preset-react": "^6.3.13",
    "babel-preset-stage-2": "^6.3.13",
    "react": "15.1.0",
    "react-dom": "15.1.0",
    "react-redux": "^4.0.6",
    "react-router": "^2.6.0",
    "redux": "^3.0.5"
  }
}

运行npm install后,我收到以下错误:

+-- react-redux@4.4.8
| +-- create-react-class@15.5.3
| `-- prop-types@15.5.10
+-- redux@3.6.0
| +-- lodash-es@4.17.4
| `-- symbol-observable@1.0.4
`-- UNMET PEER DEPENDENCY webpack@1 || 2 || ^2.1.0-beta || ^2.2.0-rc

npm WARN babel-loader@6.4.1 requires a peer of webpack@1 || 2 || ^2.1.0-beta || ^2.2.0-rc but none was installed.
npm WARN learn-react@1.0.0 No repository field.

我一直在做一些谷歌搜索但没有用到这个问题,真的需要一个100%工作的开发环境。

0 个答案:

没有答案