Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] Command failed with exit code 1: npm install #8044

Open
2 tasks done
mdsiaofficial opened this issue Jan 20, 2025 · 1 comment
Open
2 tasks done

[BUG] Command failed with exit code 1: npm install #8044

mdsiaofficial opened this issue Jan 20, 2025 · 1 comment
Labels
Bug thing that needs fixing Needs Triage needs review for next steps

Comments

@mdsiaofficial
Copy link

Is there an existing issue for this?

  • I have searched the existing issues

This issue exists in the latest npm version

  • I am using the latest npm

Current Behavior

i found error on console:

Command failed with exit code 1: npm install [email protected] date-fns @radix-ui/react-slot
(node:10300) ExperimentalWarning: CommonJS module C:\Users\ashiq\AppData\Roaming\npm\node_modules\npm\node_modules\debug\src\node.js is loading ES Module C:\Users\ashiq\AppData\Roaming\npm\node_modules\npm\node_modules\supports-color\index.js using require().
Support for loading ES Module in require() is an experimental feature and might change at any time
(Use `node --trace-warnings ...` to show where the warning was created)
npm error code ERESOLVE
npm error ERESOLVE unable to resolve dependency tree
npm error
npm error While resolving: [email protected]
npm error Found: [email protected]
npm error node_modules/date-fns
npm error   date-fns@"^4.1.0" from the root project
npm error
npm error Could not resolve dependency:
npm error peer date-fns@"^2.28.0 || ^3.0.0" from [email protected]
npm error node_modules/react-day-picker
npm error   react-day-picker@"8.10.1" from the root project
npm error
npm error Fix the upstream dependency conflict, or retry
npm error this command with --force or --legacy-peer-deps
npm error to accept an incorrect (and potentially broken) dependency resolution.      
npm error
npm error
npm error For a full report see:
npm error C:\Users\ashiq\AppData\Local\npm-cache\_logs\2025-01-20T04_56_16_522Z-eresolve-report.txt
npm error A complete log of this run can be found in: C:\Users\ashiq\AppData\Local\npm-cache\_logs\2025-01-20T04_56_16_522Z-debug-0.log

Expected Behavior

No response

Steps To Reproduce

npx shadcn@latest add calendar

Environment

  • npm: 11.0.0
  • Node.js: 23.3.0
  • OS Name: Windows 10
  • System Model Name: Dell latitude 7480
  • npm config:
; "builtin" config from C:\Users\ashiq\AppData\Roaming\npm\node_modules\npm\npmrc

prefix = "C:\\Users\\ashiq\\AppData\\Roaming\\npm"

; node bin location = C:\Program Files\nodejs\node.exe
; node version = v23.3.0
; npm local prefix = C:\Users\ashiq\work\resolve-dashboard
; npm version = 11.0.0
; cwd = C:\Users\ashiq\work\resolve-dashboard
; HOME = C:\Users\ashiq
; Run `npm config ls -l` to show all defaults.
@mdsiaofficial mdsiaofficial added Bug thing that needs fixing Needs Triage needs review for next steps labels Jan 20, 2025
@kwangsing3
Copy link

kwangsing3 commented Jan 20, 2025

Same here, wired
Image

npm version: v11.0.0
node version: v23.6.0

log file (after down graded nodejs)

Image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug thing that needs fixing Needs Triage needs review for next steps
Projects
None yet
Development

No branches or pull requests

2 participants