You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Open a terminal where the project folder is located.
run npm install
What is expected?
It should start loading node_modules folder with the expected modules inside.
What is actually happening?
It returns the error below:
npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR!
npm ERR! While resolving: [email protected]
npm ERR! Found: [email protected]
npm ERR! node_modules/react
npm ERR! react@"18.2.0" from the root project
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer react@"^16.5.0 || ^17.0.0" from [email protected]
npm ERR! node_modules/react-datetime
npm ERR! react-datetime@"3.1.1" from the root project
npm ERR!
npm ERR! Fix the upstream dependency conflict, or retry
npm ERR! this command with --force, or --legacy-peer-deps
npm ERR! to accept an incorrect (and potentially broken) dependency resolution.
npm ERR!
npm ERR! See C:\Users\X\AppData\Local\npm-cache\eresolve-report.txt for a full report.
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\X\AppData\Local\npm-cache_logs\2022-08-04T12_31_35_183Z-debug-0.log
Solution
First, running this command:
=> npm install --legacy-peer-deps
Then, normal npm install
=> npm install
it will give you this response:
added 1810 packages, and audited 1811 packages in 4m
209 packages are looking for funding
run npm fund for details
12 high severity vulnerabilities
=> npm start
Additional comments
The text was updated successfully, but these errors were encountered:
Version
1.5.1
Reproduction link
https://github.com/creativetimofficial/now-ui-kit-react
Operating System
Windows
Device
Lenovo
Browser & Version
Chrome
Steps to reproduce
What is expected?
It should start loading node_modules folder with the expected modules inside.
What is actually happening?
It returns the error below:
npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR!
npm ERR! While resolving: [email protected]
npm ERR! Found: [email protected]
npm ERR! node_modules/react
npm ERR! react@"18.2.0" from the root project
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer react@"^16.5.0 || ^17.0.0" from [email protected]
npm ERR! node_modules/react-datetime
npm ERR! react-datetime@"3.1.1" from the root project
npm ERR!
npm ERR! Fix the upstream dependency conflict, or retry
npm ERR! this command with --force, or --legacy-peer-deps
npm ERR! to accept an incorrect (and potentially broken) dependency resolution.
npm ERR!
npm ERR! See C:\Users\X\AppData\Local\npm-cache\eresolve-report.txt for a full report.
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\X\AppData\Local\npm-cache_logs\2022-08-04T12_31_35_183Z-debug-0.log
Solution
First, running this command:
=> npm install --legacy-peer-deps
Then, normal npm install
=> npm install
it will give you this response:
added 1810 packages, and audited 1811 packages in 4m
209 packages are looking for funding
run
npm fund
for details12 high severity vulnerabilities
=> npm start
Additional comments
The text was updated successfully, but these errors were encountered: