Kolombo90
Kolombo90

Reputation: 51

material-ui installation npm dependencies

I am new to React and NPM. I created a new directory, did npm init, npm install and I installed React.

This is now my package.json:

{
  "name": "reactapp",
  "version": "1.0.0",
  "description": "",
  "main": "index.js",
  "scripts": {
    "test": "echo \"Error: no test specified\" && exit 1"
  },
  "author": "",
  "license": "ISC",
  "dependencies": {
    "react": "^15.0.1",
    "react-dom": "^15.0.1"
  },
  "devDependencies": {
    "babel-core": "^6.7.6",
    "babel-loader": "^6.2.4",
    "babel-preset-es2015": "^6.6.0",
    "babel-preset-react": "^6.5.0",
    "webpack": "^1.12.15"
  }
}

The problem is while installing material-ui I got this screen and I can't really understand how I can fix it.

screen print

Thanks.

Upvotes: 2

Views: 2446

Answers (1)

iofjuupasli
iofjuupasli

Reputation: 3873

You have installed React v15.

material-ui expects older version of React.

But you shouldn't worry, because material-ui works nicely with React v15.

So just ignore this warnings. They will dissapear after next update of material-ui library by its mainteiners.

Or you can install v0.14 of react

Upvotes: 6

Related Questions