thechinedu / mui-data-table

Data table for react material-ui

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

npm ERR! peerinvalid Peer mui-data-table@0.1.5 wants material-ui@^0.15.1

Swathi8 opened this issue · comments

Getting the error while installing mui-data-table.

I material-ui installed with version 0.16.1

npm WARN peerDependencies The peer dependency material-ui@^0.15.1 included from mui-data-table will no
npm WARN peerDependencies longer be automatically installed to fulfill the peerDependency
npm WARN peerDependencies in npm 3+. Your application will need to depend on it explicitly.
npm ERR! Windows_NT 10.0.14393
npm ERR! argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "install" "mui-data-table"
npm ERR! node v4.4.7
npm ERR! npm  v2.15.8
npm ERR! code EPEERINVALID

npm ERR! peerinvalid The package material-ui@0.16.1 does not satisfy its siblings' peerDependencies requirements!
npm ERR! peerinvalid Peer mui-data-table@0.1.5 wants material-ui@^0.15.1

Same issue - overriding the peer dependency in npm-shrinkwrap.json resolved the issue e.g.:

{
    "name": "myAp",
    "version": "0.1.0",
    "dependencies": {
    "mui-data-table": {
      "version": "0.1.5",
      "from": "mui-data-table@^0.1.5",
      "dependencies": {
        "material-ui": {
          "version": "0.16.7",
          "from": "material-ui@^0.15.1"
        }
      }
    }
  }
}