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

Couldn't resolve "cee2ee7bccf83a7776c85588759aa0b8" as either a commit, a tag, or a head #99

Closed
c-ranger opened this issue Nov 6, 2023 · 5 comments

Comments

@c-ranger
Copy link

c-ranger commented Nov 6, 2023

Please help!

I can no longer install sortablejs-vue3

C:\Users\User\Projects\projectName>yarn add sortablejs-vue3 sortablejs
➤ YN0000: ┌ Resolution step
➤ YN0001: │ Error: sortablejs@github:roy-mdr/Sortable#cee2ee7bccf83a7776c85588759aa0b8: Couldn't resolve "cee2ee7bccf83a7776c85588759aa0b8" as either a commit, a tag, or a head - if a commit, use the 40-characters commit hash
    at a (C:\Users\User\Projects\projectName\.yarn\releases\yarn-3.6.4.cjs:593:6599)
    at hO (C:\Users\User\Projects\projectName\.yarn\releases\yarn-3.6.4.cjs:593:6928)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async Mb.getCandidates (C:\Users\User\Projects\projectName\.yarn\releases\yarn-3.6.4.cjs:593:11856)
    at async kf.getCandidates (C:\Users\User\Projects\projectName\.yarn\releases\yarn-3.6.4.cjs:391:1224)
    at async kf.getCandidates (C:\Users\User\Projects\projectName\.yarn\releases\yarn-3.6.4.cjs:391:1224)
    at async C:\Users\User\Projects\projectName\.yarn\releases\yarn-3.6.4.cjs:439:8025
    at async df (C:\Users\User\Projects\projectName\.yarn\releases\yarn-3.6.4.cjs:390:11064)
    at async ge (C:\Users\User\Projects\projectName\.yarn\releases\yarn-3.6.4.cjs:439:8007)
    at async Promise.allSettled (index 1)
➤ YN0000: └ Completed in 1s 587ms
➤ YN0000: Failed with errors in 1s 590ms
@c-ranger
Copy link
Author

c-ranger commented Nov 6, 2023

I found a workaround:

Add this to package.json (without the caret '^' before the version number):

"sortablejs-vue3": "1.2.9",

@therealstein
Copy link

some ai help....

This warning message is related to peer dependencies in npm. Peer dependencies are a specific kind of dependency that's expected to be installed into the parent project by the user, not as a child of the package that defines the peer dependency.

In your case, the sortablejs-vue3 package has a peer dependency on sortablejs at a specific commit (github:roy-mdr/Sortable#cee2ee7bccf83a7776c85588759aa0b8), but the installed version of sortablejs in your project is 1.15.0, which doesn't satisfy the peer dependency requirement.

@Tnze
Copy link

Tnze commented Nov 13, 2023

Same

@Tnze
Copy link

Tnze commented Nov 13, 2023

I found a workaround:

Add this to package.json (without the caret '^' before the version number):

"sortablejs-vue3": "1.2.9",

I use yarn add [email protected] and it works too.

@MaxLeiter
Copy link
Owner

This should be resolved in v1.2.11.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants