-
-
Notifications
You must be signed in to change notification settings - Fork 32.3k
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
Unable to install @mui/material-icons last version #12432
Comments
We could save 22M by removing the For comparison:
|
I found a solution here : So either:
I think reducing the package size to the minimum would be great. People can always go with a babel solution such as https://github.com/lodash/babel-plugin-lodash to rewrite the import. The default timeout of yarn is 30s https://github.com/yarnpkg/yarn/blob/a4708b29ac74df97bac45365cba4f1d62537ceb7/src/constants.js#L40 |
@oliviertassinari What about separate Reason:
|
This comment has been minimized.
This comment has been minimized.
Current yarn network timeout is 30s: https://github.com/yarnpkg/yarn/blob/15a438de996aac8b9eb08719a3f27ec03f650b21/src/constants.js#L36-L37. It should takes less than 30s to install this dependency!
@b1f6c1c4 I believe lodash did more harm than good to the community with the double package. It's a mess with transitive dependencies. People end-up loading the two versions. I think that we should be removing the |
I have added the |
This comment has been minimized.
This comment has been minimized.
Is that actually worse than if all the code is in one package and only half of your deps use the |
I'm getting the timeout on a Raspberry Pi but I'm still confused why it would be a problem since the tarball for |
This comment has been minimized.
This comment has been minimized.
Same Issue here. |
Same issue, With yarn @material-ui/icons get stuck at 1067/1068, but with npm install it works. Really strange... EDIT |
This comment has been minimized.
This comment has been minimized.
FYI - I just hit it as well after upgrading yarn.
I'll try the |
FontAwesome is a bit larger than us (+10%): https://packagephobia.now.sh/result?p=%40fortawesome%2Ffontawesome-free. |
@oliviertassinari Interesting... Yes 9.60 MB is small enough TBH, given this is a lib with bunch of svg data. I'm pretty sure this is due to some blip in yarn or even my network traffic (even though it repro'ed multiple times consistently). I tried the network timeout hack and it works. |
Also got this issue. |
That sounds very reasonable - I have this failure only on a low-end device. - The timeout increase helped, though. |
#14232 is definitely the way to go, I was having this issue and I managed to fix it by setting the network-timeout. |
#12432 (comment) fixed the issue for me. |
Not able to install material-ui in VS Code. npm install @material-ui/core gives error. VS code installed on Win 7 laptop |
The installation size has been significantly shrunk in v5.0.0-alpha.35 with #26309 and v5.0.0-alpha.36, with #26310. We should be good now: https://packagephobia.com/result?p=%40material-ui%2Ficons%40next |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
Looks like |
This comment has been minimized.
This comment has been minimized.
* Set version for avatars * upgrade @material-ui/core and @material-ui/icons * add .yarnrc with increase network timeout for windows to help with material ui download per mui/material-ui#12432 (comment)
Still having this issue 5/23/2023 |
Same for me |
You can switch to the npm registry temporarily:
Sometimes corrupt cache can cause issues. Clear the Yarn cache and try again:
|
same for me |
The Error log reads like for me too
I just simply uninstalled my ### Node in the C Drive and Re-Installed the Node it to latest version. |
Hello,
since @material-ui/icons v2.0.1, I'm unable to install it using yarn (v1.9.2).
It just timeout after a while and multiple
info There appears to be trouble with your network connection. Retrying...
messages.Here is the error from yarn :
EDIT : apparently it's a known issue : yarnpkg/yarn#6221
The text was updated successfully, but these errors were encountered: