I'd resolve npm install error by forcing but now getting other error so posting this question.
Issue resolve relate to
npm install @mui/icons-material:- Errorbut now getting below error after running
npm start
Failed to compile.
./node_modules/@mui/icons-material/Delete.js
Module not found: Can't resolve 'react/jsx-runtime'
but I had found 2 Delete.js files on above given path not sure why still getting this error.
I've checked the below pages
I tried multiple things. Hope my solution will come handy for you. Blog
Out of that 2 ans are very interesting.
This feature has been introduced in
npm v5. update tonpmusingnpm install -g npm@latestand to updatepackage.jsondelete
/node_modulesandpackage-lock.json(if you have any)run
npm update. this will update the dependenciespackage.jsonto the latest.to update to very latest version. you can go with
npm-check-updates.If you're looking for an easier solution that doesn't involve installing npm packages, I'd checkout updatepackagejson.com
Solution to above problem run the below line of code. Link
I was getting error while running this in hyper as my package.json was not updated. And due package-lock even after running
npm-check-updatespackage.json did not got updated.