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

Issue with Yarn workspaces #776

Closed
karthikcodes6 opened this issue Nov 10, 2021 · 3 comments
Closed

Issue with Yarn workspaces #776

karthikcodes6 opened this issue Nov 10, 2021 · 3 comments

Comments

@karthikcodes6
Copy link

I tried to install the dependencies using yarn I'm getting below errors

Yarn: 1.22.11
Node: v14.18.1
OS: MacOS

Error: Couldn't find package "@your-org/ui-lib@workspace:*" required by "blog-app@3.20.1" on the "npm" registry.
    at /Users/karthik/.yarn/releases/yarn-1.22.11.cjs:38129:17
    at Generator.throw (<anonymous>)
    at step (/Users/karthik/.yarn/releases/yarn-1.22.11.cjs:310:30)
    at /Users/karthik/.yarn/releases/yarn-1.22.11.cjs:323:13
    at processTicksAndRejections (internal/process/task_queues.js:95:5)
Error: Couldn't find package "@your-org/ui-lib@workspace:*" required by "vite-app@0.1.0" on the "npm" registry.
    at /Users/karthik/.yarn/releases/yarn-1.22.11.cjs:38129:17
    at Generator.throw (<anonymous>)
    at step (/Users/karthik/.yarn/releases/yarn-1.22.11.cjs:310:30)
    at /Users/karthik/.yarn/releases/yarn-1.22.11.cjs:323:13
    at processTicksAndRejections (internal/process/task_queues.js:95:5)
Error: Couldn't find package "@your-org/ui-lib@workspace:*" required by "web-app@3.34.1" on the "npm" registry.
    at /Users/karthik/.yarn/releases/yarn-1.22.11.cjs:38129:17
    at Generator.throw (<anonymous>)
    at step (/Users/karthik/.yarn/releases/yarn-1.22.11.cjs:310:30)
    at /Users/karthik/.yarn/releases/yarn-1.22.11.cjs:323:13
    at processTicksAndRejections (internal/process/task_queues.js:95:5)
Error: Couldn't find package "@your-org/core-lib@workspace:*" required by "vite-app@0.1.0" on the "npm" registry.
    at /Users/karthik/.yarn/releases/yarn-1.22.11.cjs:38129:17
    at Generator.throw (<anonymous>)
    at step (/Users/karthik/.yarn/releases/yarn-1.22.11.cjs:310:30)
    at /Users/karthik/.yarn/releases/yarn-1.22.11.cjs:323:13
    at processTicksAndRejections (internal/process/task_queues.js:95:5)
Error: Couldn't find package "@your-org/db-main-prisma@workspace:*" required by "web-app@3.34.1" on the "npm" registry.
    at /Users/karthik/.yarn/releases/yarn-1.22.11.cjs:38129:17
    at Generator.throw (<anonymous>)
    at step (/Users/karthik/.yarn/releases/yarn-1.22.11.cjs:310:30)
    at /Users/karthik/.yarn/releases/yarn-1.22.11.cjs:323:13
    at runMicrotasks (<anonymous>)
    at processTicksAndRejections (internal/process/task_queues.js:95:5)
Error: Couldn't find package "@your-org/core-lib@workspace:*" required by "web-app@3.34.1" on the "npm" registry.
    at /Users/karthik/.yarn/releases/yarn-1.2
@belgattitude
Copy link
Owner

belgattitude commented Nov 10, 2021

Easy one

This repo example uses yarn 3.1+ and yarn workspace plugin. You're on yarn 1.22.11

Just install them or copy/paste the .yarnrc.yml and the .yarn folder. Your local yarn will pick the versions from there

Check also .gitignore for additional.

If you need more help let me know

@karthikcodes6
Copy link
Author

Cool. It was because of the cache. Yarn was picking the version from my home folder cache instead from the project level cache. It started to work after I cleared the home folder cache. Thank you so much for your help 😊.

@belgattitude
Copy link
Owner

Ah yes thanks for letting me know. Happy day

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

2 participants