question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

npm error when trying to install `@mui/material`

See original GitHub issue

Duplicates

  • 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:closed
  • Created 2 years ago
  • Reactions:1
  • Comments:12 (9 by maintainers)

github_iconTop GitHub Comments

2reactions
robcaldecottcommented, Mar 14, 2022

WORKAROUND

If you are using npm 8 you can use overrides in your package.json to workaround this:

"overrides": {
    "@popperjs/core": "2.11.4"
  },

For yarn you can use resolutions instead.

For pnpm use overrides: https://pnpm.io/package_json#pnpmoverrides

If you’re on npm 7 or earlier you’re probably out of luck though.

1reaction
atomikscommented, Mar 14, 2022

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

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found