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

Cannot install @microsoft/kiota-bundle under Yarn #1369

Closed
hognevevle opened this issue Sep 12, 2024 · 6 comments · Fixed by #1445
Closed

Cannot install @microsoft/kiota-bundle under Yarn #1369

hognevevle opened this issue Sep 12, 2024 · 6 comments · Fixed by #1445
Assignees
Labels
dependencies Pull requests that update a dependency file status:waiting-for-dependency An issue that has core project dependency that's currently blocking it WIP

Comments

@hognevevle
Copy link

hognevevle commented Sep 12, 2024

yarn add @microsoft/kiota-bundle
➤ YN0000: · Yarn 4.3.1
➤ YN0000: ┌ Resolution step
➤ YN0082: │ @microsoft/kiota-abstractions@npm:*: No candidates found
➤ YN0000: └ Completed in 0s 380ms
➤ YN0000: · Failed with errors in 0s 404ms

I can install @microsoft/kiota-abstractions directly without an issue:

 yarn add @microsoft/kiota-abstractions
➤ YN0000: · Yarn 4.3.1
➤ YN0000: ┌ Resolution step
➤ YN0085: │ + @microsoft/kiota-abstractions@npm:1.0.0-preview.66, @opentelemetry/api@npm:1.9.0, @std-uritemplate/std-uritemplate@npm:1.0.6, guid-typescript@npm:1.0.9, tinyduration@npm:3.3.1, uuid@npm:10.0.0
➤ YN0000: └ Completed in 1s 480ms
➤ YN0000: ┌ Post-resolution validation
[...]
➤ YN0000: └ Completed
➤ YN0000: ┌ Fetch step
➤ YN0013: │ A package was added to the project (+ 441.71 KiB).
➤ YN0000: └ Completed in 0s 956ms
➤ YN0000: ┌ Link step
➤ YN0008: │ nuxt-app@workspace:. must be rebuilt because its dependency tree changed
➤ YN0000: └ Completed in 7s 790ms
➤ YN0000: · Done with warnings in 10s 414ms
@baywet
Copy link
Member

baywet commented Sep 12, 2024

Hi @hognevevle
Thank you for using kiota and for reaching out.
It seems to be an issue with the yarn registry, is it possible they are behind in terms of indexing npm?
Someone was having the same issue with abstractions not long ago yarnpkg/berry#6469

@baywet baywet added dependencies Pull requests that update a dependency file status:waiting-for-author-feedback Issue that we've responded but needs author feedback to close labels Sep 12, 2024
@zZHorizonZz
Copy link

zZHorizonZz commented Sep 18, 2024

I'm also having this issue when using yarn 2.0 (4.5.0). The issue also occurs when using yarn 1.0, if I remember correctly, I needed to manually select the version of kiota-abstractions when running the yarn install command. For 2.0, it doesn't give me this option and just throws an error.

@baywet baywet added status:waiting-for-dependency An issue that has core project dependency that's currently blocking it and removed Status: No Recent Activity status:waiting-for-author-feedback Issue that we've responded but needs author feedback to close labels Sep 23, 2024
@medevod
Copy link

medevod commented Oct 2, 2024

Same issue for me , I could not install my kiota client project in CI/CD

yarn install v1.22.22
warning package-lock.json found. Your project contains lock files generated by tools other than Yarn. It is advised not to mix package managers in order to avoid resolution inconsistencies caused by unsynchronized lock files. To clear this warning, remove package-lock.json.
[1/4] Resolving packages...
warning Lockfile has incorrect entry for "@microsoft/kiota-abstractions@". Ignoring it.
Couldn't find any versions for "@microsoft/kiota-abstractions" that matches "
"
? Please choose a version of "@microsoft/kiota-abstractions" from this list: (Use arrow keys)

1.0.0-preview.66
1.0.0-preview.65
1.0.0-preview.64
1.0.0-preview.63
1.0.0-preview.62
1.0.0-preview.61
...

@baywet
Copy link
Member

baywet commented Oct 2, 2024

For everyone reading here. The issue seems to be with yarn itself and there's not much we can do as package authors as far as I understand.
This is being discussed in this issue yarnpkg/berry#6469
A workaround has been provided, and the next step is to PR yarn itself to solve the issue for good. I'm guessing the yarn team is waiting for anybody to take the issue and submit a pull request for it.

@andrueastman
Copy link
Member

@hognevevle @medevod @zZHorizonZz
Any chance you can confirm if this issue is still present with the latest release of the bundle package?

https://www.npmjs.com/package/@microsoft/kiota-bundle/v/1.0.0-preview.71

@medevod
Copy link

medevod commented Oct 28, 2024

Hi @andrueastman,
It works for me with this latest version of kiota-bundle.
I'am using yarn v1.22.19

Thank you

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Pull requests that update a dependency file status:waiting-for-dependency An issue that has core project dependency that's currently blocking it WIP
Projects
Status: Done ✔️
Development

Successfully merging a pull request may close this issue.

5 participants