Tuesday 30 May 2017

webpack and Babel package issue: NPM "UNMET PEER DEPENDENCY" error

I am trying to install a react boilerplate and it has the following package:

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"
  }
}

I am receiving the following error after running 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.

I've been doing some google searches with no avail to this issue, really need a 100% working dev environment.



via clusterBuddy

No comments:

Post a Comment