Common npm problem #195544
-
🏷️ Discussion TypeQuestion BodyYou run npm install and get the error ! |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
|
Use the legacy resolver (quickest fix): npm install --legacy-peer-deps if it doesn t work just force it!! |
Beta Was this translation helpful? Give feedback.
-
Usually works immediately: npm install --legacy-peer-deps or: npm i --legacy-peer-deps Less safe but sometimes needed: npm install --force Then reinstall clean: rm -rf node_modules package-lock.json npm install Windows: rmdir /s /q node_modules npm install Run: npm install Then look for lines like: Found: package-a@5 That tells you: You installed version 5 You then either: downgrade package-a Match versions: npm install next@latest react@latest react-dom@latest or specific package: npm ls react |
Beta Was this translation helpful? Give feedback.
Use the legacy resolver (quickest fix):
npm install --legacy-peer-deps
if it doesn t work just force it!!