DEV Community

Ashish Keshri
Ashish Keshri

Posted on

deployment error from vercel having dependencies of node 16v

[20:18:19.676] Cloning github.com/keshri95/tesla-clone (Branch: dependabot/npm_and_yarn/loader-utils-2.0.4, Commit: a32a2e9)
[20:18:20.249] Previous build caches not available
[20:18:20.279] Cloning completed: 602.781ms
[20:18:20.716] Running "vercel build"
[20:18:21.208] Vercel CLI 28.8.0
[20:18:21.811] Installing dependencies...
[20:18:23.458] npm ERR! code ERESOLVE
[20:18:23.462] npm ERR! ERESOLVE could not resolve
[20:18:23.462] npm ERR! 
[20:18:23.463] npm ERR! While resolving: @material-ui/core@4.12.4
[20:18:23.463] npm ERR! Found: react@18.1.0
[20:18:23.463] npm ERR! node_modules/react
[20:18:23.463] npm ERR!   react@"^18.1.0" from the root project
[20:18:23.463] npm ERR!   peer react@">=16.8.0" from @emotion/react@11.9.0
[20:18:23.463] npm ERR!   node_modules/@emotion/react
[20:18:23.464] npm ERR!     @emotion/react@"^11.9.0" from the root project
[20:18:23.464] npm ERR!     peer @emotion/react@"^11.0.0-rc.0" from @emotion/styled@11.8.1
[20:18:23.464] npm ERR!     node_modules/@emotion/styled
[20:18:23.464] npm ERR!       @emotion/styled@"^11.8.1" from the root project
[20:18:23.465] npm ERR! 
[20:18:23.465] npm ERR! Could not resolve dependency:
[20:18:23.465] npm ERR! peer react@"^16.8.0 || ^17.0.0" from @material-ui/core@4.12.4
[20:18:23.465] npm ERR! node_modules/@material-ui/core
[20:18:23.466] npm ERR!   peer @material-ui/core@"^4.0.0" from @material-ui/icons@4.11.3
[20:18:23.466] npm ERR!   node_modules/@material-ui/icons
[20:18:23.466] npm ERR!     @material-ui/icons@"^4.11.3" from the root project
[20:18:23.466] npm ERR! 
[20:18:23.466] npm ERR! Conflicting peer dependency: react@17.0.2
[20:18:23.466] npm ERR! node_modules/react
[20:18:23.466] npm ERR!   peer react@"^16.8.0 || ^17.0.0" from @material-ui/core@4.12.4
[20:18:23.467] npm ERR!   node_modules/@material-ui/core
[20:18:23.467] npm ERR!     peer @material-ui/core@"^4.0.0" from @material-ui/icons@4.11.3
[20:18:23.467] npm ERR!     node_modules/@material-ui/icons
[20:18:23.467] npm ERR!       @material-ui/icons@"^4.11.3" from the root project
[20:18:23.467] npm ERR! 
[20:18:23.467] npm ERR! Fix the upstream dependency conflict, or retry
[20:18:23.467] npm ERR! this command with --force, or --legacy-peer-deps
[20:18:23.467] npm ERR! to accept an incorrect (and potentially broken) dependency resolution.
[20:18:23.467] npm ERR! 
[20:18:23.467] npm ERR! See /vercel/.npm/eresolve-report.txt for a full report.
[20:18:23.467] 
[20:18:23.468] npm ERR! A complete log of this run can be found in:
[20:18:23.468] npm ERR!     /vercel/.npm/_logs/2022-12-09T14_48_22_080Z-debug-0.log
[20:18:23.496] Error: Command "npm install" exited with 1
Enter fullscreen mode Exit fullscreen mode

enter image description here

I had work project on node 16v and now I am deploying it node18 havin cause some dependencies

Top comments (0)