npm error when trying to install `@mui/material`
See original GitHub issueDuplicates
- I have searched the existing issues
Latest version
- I have tested the latest version
Current behavior 😯
package installation fails. node - v16.13.1
» npm install @mui/material @emotion/react @emotion/styled
npm WARN deprecated source-map-resolve@0.6.0: See https://github.com/lydell/source-map-resolve#deprecated
npm WARN deprecated svgo@1.3.2: This SVGO version is no longer supported. Upgrade to v2.x.x.
npm ERR! code 127
npm ERR! path <Path>/frontend/node_modules/@popperjs/core
npm ERR! command failed
npm ERR! command sh -c husky install .config/husky
npm ERR! sh: husky: command not found
npm ERR! A complete log of this run can be found in:
npm ERR! /Users/drorrash/.npm/_logs/2022-03-13T14_31_29_665Z-debug.log
------------------------------------------------------------------------------------------------------------------------
Expected behavior 🤔
No response
Steps to reproduce 🕹
No response
Context 🔦
No response
Your environment 🌎
No response
Issue Analytics
- State:
- Created 2 years ago
- Reactions:1
- Comments:12 (9 by maintainers)
Top Results From Across the Web
cannot install @material-ui/core using npm - Stack Overflow
If you want to use styled-components instead, run: try to use this npm install @mui/material @mui/styled-engine-sc styled-components.
Read more >@mui/material - npm
Material UI. Material UI is available as an npm package. npm: npm install @mui/material @emotion/react @emotion/styled.
Read more >Installation - Material UI - MUI
npm install @mui/material @emotion/react @emotion/styled ... If you want to use styled-components instead, run one of the following commands: ...
Read more >module not found: error: can't resolve '@mui/material/box'
Answered on Oct 10, 2021. Try this command npm install @mui/material @emotion/react @emotion/styled. Open side panel. Module not found: Error: Can't resolve ...
Read more >I got this error when I was installing firebase in a ... - Reddit
I got this error when I was installing firebase in a project using {npm install firebase} command. What's the issue here??
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
WORKAROUND
If you are using npm 8 you can use
overrides
in yourpackage.json
to workaround this:For
yarn
you can useresolutions
instead.For
pnpm
useoverrides
: https://pnpm.io/package_json#pnpmoverridesIf you’re on npm 7 or earlier you’re probably out of luck though.
The dependency in
@mui/base
is^2.11.2
. You probably just need to remove then reinstall the package and it’ll install the latest (non-broken) transitive@popperjs/core
dependency