Skip to content

cannot npm install because of dependency conflict #219

@sksthrs

Description

@sksthrs

problem

  • I cloned solid template and did npm install, then failed.
C:\mydir>npx degit solidjs/templates/vanilla/basic my-solid-project
> cloned solidjs/templates#HEAD to my-solid-project
C:\mydir>cd my-solid-project
C:\mydir\my-solid-project>npm i
npm error code ERESOLVE
npm error ERESOLVE could not resolve
npm error
npm error While resolving: solid-devtools@0.34.3
npm error Found: vite@7.1.7
npm error node_modules/vite
npm error   dev vite@"^7.1.4" from the root project
npm error   peer vite@"^3.0.0 || ^4.0.0 || ^5.0.0 || ^6.0.0 || ^7.0.0" from vite-plugin-solid@2.11.8
npm error   node_modules/vite-plugin-solid
npm error     dev vite-plugin-solid@"^2.11.8" from the root project
npm error
npm error Could not resolve dependency:
npm error peerOptional vite@"^2.2.3 || ^3.0.0 || ^4.0.0 || ^5.0.0 || ^6.0.0" from solid-devtools@0.34.3
npm error node_modules/solid-devtools
npm error   dev solid-devtools@"^0.34.3" from the root project
npm error
npm error Conflicting peer dependency: vite@6.3.6
npm error node_modules/vite
npm error   peerOptional vite@"^2.2.3 || ^3.0.0 || ^4.0.0 || ^5.0.0 || ^6.0.0" from solid-devtools@0.34.3
npm error   node_modules/solid-devtools
npm error     dev solid-devtools@"^0.34.3" 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\user\AppData\Local\npm-cache\_logs\2025-09-23T07_42_09_392Z-eresolve-report.txt
npm error A complete log of this run can be found in: C:\Users\user\AppData\Local\npm-cache\_logs\2025-09-23T07_42_09_392Z-debug-0.log

(the "complete log" is almost same as above messages)

My environment

  • Windows 11 24H2 (x64)
  • node v22.16.0
  • npm 11.5.2

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions