Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Npm install fails #1712

Closed
timuric opened this issue Sep 24, 2015 · 42 comments
Closed

Npm install fails #1712

timuric opened this issue Sep 24, 2015 · 42 comments
Labels
core Infrastructure work going on behind the scenes package: material-ui Specific to @mui/material

Comments

@timuric
Copy link
Contributor

timuric commented Sep 24, 2015

React-tap-event-plugin requires higher version of react.
npm ERR! peerinvalid The package react does not satisfy its siblings' peerDependencies requirements! npm ERR! peerinvalid Peer reapp-kit@1.2.15 wants react@0.13.x npm ERR! peerinvalid Peer react-tap-event-plugin@0.1.9 wants react@^0.14.0-0 npm ERR! peerinvalid Peer material-ui@0.11.1 wants react@>=0.13

@oliviertassinari
Copy link
Member

@timuric
Copy link
Contributor Author

timuric commented Sep 24, 2015

@oliviertassinari That doesn't help since the dependency is in material-ui is react-tap-event-plugin": ">=0.1.3

Which would go up to 0.2.0

npm ERR! peerinvalid Peer react-tap-event-plugin@0.2.0 wants react@^0.14.0-0

@payner35
Copy link

am getting this.

npm ERR! peerinvalid The package react does not satisfy its siblings' peerDependencies requirements!
npm ERR! peerinvalid Peer material-ui@0.11.1 wants react@>=0.13
npm ERR! peerinvalid Peer react-tap-event-plugin@0.2.0 wants react@^0.14.0-0

@timuric
Copy link
Contributor Author

timuric commented Sep 24, 2015

@payner35 there is a pull request to fix this issue #1714

@payner35
Copy link

great... thanks.

@tmiyamon
Copy link

got the same erorr

@oliviertassinari
Copy link
Member

@shaurya947 Can you have a look? I think that a quickfix is needed here.

@shaurya947
Copy link
Contributor

I've merged #1714. The error should go away now. Thanks @oliviertassinari!

@oliviertassinari
Copy link
Member

Your welcome. You gonna have to publish a 0.11.2 with the fix.

@shaurya947
Copy link
Contributor

Yup, getting on it!

@shaurya947 shaurya947 reopened this Sep 24, 2015
yongxu pushed a commit to yongxu/material-ui that referenced this issue Sep 24, 2015
@dinardln
Copy link

i am having the same problem too.

@shaurya947
Copy link
Contributor

@dinardln if you pull the latest from master, this issue should have gone away.

As for support for v0.14.0-rc1, we're working on it and will try to include it in a new release of Material-UI which is most likely coming today.

@tapas4java
Copy link

Tried npm install material-ui with Node 4.1 today and got below error:

DBSQAs-MacBook-Pro:tquesto dbsqa$ npm install material-ui --save
npm WARN peerDependencies The peer dependency react@>=0.13 included from material-ui 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 WARN peerDependencies The peer dependency react-tap-event-plugin@^0.1.3 included from material-ui 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 WARN peerDependencies The peer dependency fbjs@^0.2.1 included from react-tap-event-plugin 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! Darwin 13.4.0
npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "install" "material-ui" "--save"
npm ERR! node v4.1.0
npm ERR! npm  v2.14.3
npm ERR! code EPEERINVALID

npm ERR! peerinvalid The package fbjs@0.2.0 does not satisfy its siblings' peerDependencies requirements!
npm ERR! peerinvalid Peer react-tap-event-plugin@0.1.8 wants fbjs@^0.2.1

npm ERR! Please include the following file with any support request:
npm ERR!     /Users/dbsqa/Desktop/Tapas/RnD/Gitlabs/tquesto/npm-debug.log
DBSQAs-MacBook-Pro:tquesto dbsqa$ 

@bdefore
Copy link

bdefore commented Sep 26, 2015

Looking forward to this being pushed to npm!

@olivierGM
Copy link

I had that problem 3-4 days ago and I included "react-tap-event-plugin": "~0.1.3" in my dependencies in my own project (package.json) and i no longer have that problem since material-ui only requires a version>=0.1.3.

edit: this works if you use react 0.13

@bdefore
Copy link

bdefore commented Sep 26, 2015

@olivierGM if i do that i get the error npm ERR! peerinvalid Peer react-tap-event-plugin@0.1.3 wants react@~0.12 ... the project i'm working on is using react 0.14.0-rc1

@olivierGM
Copy link

I am using "react": "~0.13.3" and i am not ready to move to react 0.14 so this fix works for me (react 0.13) but not 0.14...

@skosch
Copy link

skosch commented Sep 28, 2015

+1, a fix for 0.14.* would be lovely 👍

@bdefore
Copy link

bdefore commented Sep 30, 2015

+1 for the update to 0.14!

@shaurya947
Copy link
Contributor

Does the code from the react-0.14-support branch help you guys? Of course, it'll be a while before it is pushed to npm.

@bdefore
Copy link

bdefore commented Sep 30, 2015

I tried adding it to package.json as "material-ui": "git@github.com:callemall/material-ui.git#react-0.14-support" and that did allow npm install to go through in my project. But then I discovered that my imports couldn't find material-ui and I believe that's because I'd need to manually build material-ui in my node-modules. Unfortunately, running npm i in there it gives me linting errors: https://gist.github.com/bdefore/56d92d050c86894c2390

@bdefore
Copy link

bdefore commented Sep 30, 2015

If I comment out all the pipes to eslint in the gulpfile.js and run npm run build it appears to work for me. I also had to take out an instance in my code where I was using mui.Styles.ThemeManager(); .. this helps me move on for now, thanks @shaurya947

@shaurya947
Copy link
Contributor

@bdefore glad you could get this through. I'm not sure which ESLint rule (if any) applies to the linting error you had.

As for the ThemeManager stuff, all that has changed! See here and here

@bdefore
Copy link

bdefore commented Oct 1, 2015

In case anyone else is down this path, I ended up hitting a wall. The current state of react-0.14-support is not quite ready yet, I can get it to compile and partially style, but still get runtime errors about refs being on a parent instead of an owner. I think I saw an issue filed about that somewhere. I think I'll hold off for now.

@cgestes
Copy link
Contributor

cgestes commented Oct 1, 2015

@bdefore I get this error when using react 0.13. did you cleaned you node_modules folders before trying the branch?

@bdefore
Copy link

bdefore commented Oct 1, 2015

@cgestes I've reproduced the refs related error. There's nothing in my code that is using refs. Per the help documentation referenced, it recommends ensuring I don't have mismatching React versions in play, so I've done an npm list for both my root and the material_ui I've build in node_modules: https://gist.github.com/bdefore/a05d3a8254c6dc9ecb8a ... from what I can see everything that's React related is all aligned on 0.14 rc1

@chaddjohnson
Copy link

I'm just starting out with React and wanted to use Material UI. So I'm not sure this is helpful, but here's what I ended up installing, and it resulted in no conflicts...

react@^0.13
fbjs@^0.2.1
react-tap-event-plugin@^0.1.7
react-dom@^0.14.0-rc1
material-ui

Obviously I'm using React 0.13 instead of 0.14.

@BonnieHsieh0819
Copy link

I got this problem

npm ERR! Darwin 14.5.0
npm ERR! argv "/opt/local/bin/node" "/opt/local/bin/npm" "install" "material-ui" "--save"
npm ERR! node v0.12.7
npm ERR! npm v2.14.3
npm ERR! code EPEERINVALID

npm ERR! peerinvalid The package react@0.14.0-rc1 does not satisfy its siblings' peerDependencies requirements!
npm ERR! peerinvalid Peer react-tap-event-plugin@0.1.8 wants react@^0.14.0-0 || ~0.13.x || ~0.12.x
npm ERR! peerinvalid Peer material-ui@0.12.1 wants react@>=0.13

npm ERR! Please include the following file with any support request:
npm ERR! /Users/bunniehsieh/npm-debug.log

Which version should I use? 0.13 or 0.14?Thank you!!!!

@shaurya947
Copy link
Contributor

@BUNNIEHSIEH if you want to use the current stable version of Material-UI, use React 0.13.3.

If you want to check out our experimental support branch for React 0.14, get the source code from the react-0.14-support branch and compile it using babel. If using this branch, I would recommend updating your global npm packages.

@hmeerlo
Copy link

hmeerlo commented Oct 8, 2015

How can anyone try the react-0.14-support branch with those lint errors? I had to disable them manually as well.

@benjeffery
Copy link

@bdefore I also had the "ref owner" issue you refer to. As I had built material-ui locally my node_modules looked like your gist. You still have two instances of React - one at the top level and one in "node_modules/material-ui/node_modules"
I deleted "node_modules/material-ui/node_modules/react" and the problem was fixed

@bdefore
Copy link

bdefore commented Oct 12, 2015

excellent @benjeffery thanks! works for me too.

@oliviertassinari
Copy link
Member

This should be fixed with the latest release.

@quantuminformation
Copy link
Contributor

I tried to install material-ui today but get:

image

@oliviertassinari
Copy link
Member

@quantuminformation react-tap-event-plugin is a peer dependency.
You have to install it on your project.

@quantuminformation
Copy link
Contributor

Ah ok, never used them before.

@quantuminformation
Copy link
Contributor

What is the correct way to go about solving this:

npm WARN website@1.0.0 requires a peer of react-tap-event-plugin@^0.2.x but none was installed.
npm WARN website@1.0.0 requires a peer of history@^1.13.x but none was installed.
npm WARN material-ui@0.14.0-rc2 requires a peer of react-tap-event-plugin@^0.2.0 but none was installed.
npm WARN react-router@1.0.2 requires a peer of history@1.13.x but none was installed.
npm WARN brexit-live-pool-website@1.0.0 No description 
  "devDependencies": {
    "autoprefixer-loader": "^3.1.0",
    "babel-core": "^6.1.20",
    "babel-loader": "^6.1.0",
    "babel-preset-es2015": "^6.1.18",
    "babel-preset-react": "^6.1.18",
    "jest": "^0.1.40",
    "webpack": "^1.12.4",
    "webpack-dev-server": "^1.12.1",
    "css-loader": "^0.22.0",
    "style-loader": "^0.13.0"
  },
  "dependencies": {
    "babel-polyfill": "^6.1.19",
    "material-ui": "^0.14.0-rc2",
    "react": "^0.14.2",
    "react-dom": "^0.14.2",
    "react-mdl": "^1.0.4",
    "react-router": "^1.0.2"
  },
  "peerDependencies": {
    "react-tap-event-plugin": "^0.2.x",
    "history": "^1.13.x"
  } 

@oliviertassinari
Copy link
Member

@quantuminformation
Copy link
Contributor

@oliviertassinari thx, if I use them I get:

npm WARN react-router@1.0.2 requires a peer of history@1.13.x but none was installed.
npm WARN website@1.0.0 No description

@c0b41
Copy link

c0b41 commented Dec 23, 2015

@quantuminformation
npm install --save react-tap-event-plugin history

@newoga
Copy link
Contributor

newoga commented Dec 23, 2015

That's an issue with react router and history. Not material ui.

Install the history version specified not the latest. It's on react routers change log. Sorry I would link but I'm on my phone.

@newoga
Copy link
Contributor

newoga commented Dec 23, 2015

@quantuminformation Here is the change log for the latest (as of now) version of react-router.

mnajdova pushed a commit to mnajdova/material-ui that referenced this issue Nov 10, 2020
Bumps [remark-slug](https://github.com/remarkjs/remark-slug) from 5.1.2 to 6.0.0.
- [Release notes](https://github.com/remarkjs/remark-slug/releases)
- [Commits](remarkjs/remark-slug@5.1.2...6.0.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
@zannager zannager added the package: material-ui Specific to @mui/material label Dec 22, 2022
@zannager zannager added the core Infrastructure work going on behind the scenes label Jan 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
core Infrastructure work going on behind the scenes package: material-ui Specific to @mui/material
Projects
None yet
Development

No branches or pull requests