-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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]: Internal Error: The package @yarnpkg/monorepo@workspace:. isn't supported by any of the available linkers #2187
Comments
@joeldenning How can we reproduce the problem, can you upload the repo somewhere on which we can reproduce the problem, or can you provide precise repro steps? |
This error is not related to running yarn in a code repository - it occurs whenever I run
For me: npm i -g yarn
yarn set version berry
yarn set version from sources I imagine that on other computers those commands don't throw an error - I don't know what about my environment would cause it to fail. |
Do you have a |
I do have a yarnPath: ".yarn/releases/yarn-berry.cjs" I tried ~ [1] $ yarn set version from sources
➤ YN0000: Fetching the latest commits
$ git fetch origin master --force
$ git reset --hard FETCH_HEAD
$ git clean -dfx
➤ YN0000: Building a fresh bundle
Usage Error: Unrecognized or legacy configuration settings found: changesetIgnorePatterns - run "yarn config -v" to see the list of settings supported in Yarn (in /private/var/folders/74/8gbl9tds5h7fmjz4cxjvywyr0000gn/T/yarnpkg-sources/d0a670/.yarnrc.yml)
$ yarn run [--inspect] [--inspect-brk] <scriptName> ...
➤ YN0001: Error: Child "yarn" exited with exit code 1
at ChildProcess.<anonymous> (/Users/joeldenning/.yarn/releases/yarn-berry.cjs:2:403919)
at ChildProcess.emit (events.js:315:20)
at maybeClose (internal/child_process.js:1048:16)
at Process.ChildProcess._handle.onexit (internal/child_process.js:288:5)
➤ YN0000: Failed with errors in 1s 256ms
~ [1] $ cat .yarnrc.yml
yarnPath: ".yarn/releases/yarn-berry.cjs"
~ $ cat ../.yarnrc.yml
cat: ../.yarnrc.yml: No such file or directory
~ [1] $ cat ../../.yarnrc.yml
cat: ../../.yarnrc.yml: No such file or directory
~ [1] $ pwd
/Users/joeldenning |
As https://yarnpkg.com/getting-started/install mentions you should be running that command in your project, not the home directory (i.e. remove |
In retrospect it's most likely the same issue as #2121 |
Describe the bug
A clear and concise description of what the bug is.
To Reproduce
When I run
yarn set version from sources
, I get the following error:Screenshots
Environment if relevant (please complete the following information):
Additional context
The text was updated successfully, but these errors were encountered: