为什么 Yarn 会失败并出现“未找到候选者”错误?

问题描述 投票:0回答:1

例如,我尝试使用

netlify-cli
yarn upgrade-interactive
从 17.7.0 升级到 17.8.1,并发生以下错误:

➤ YN0000: · Yarn 4.0.2
➤ YN0000: ┌ Resolution step
➤ YN0082: │ @netlify/zip-it-and-ship-it@npm:9.28.1: No candidates found
➤ YN0000: └ Completed in 1s 602ms
➤ YN0000: · Failed with errors in 1s 617ms

➤ YN0000: · Yarn 4.0.2
➤ YN0000: ┌ Resolution step
➤ YN0082: │ @formkit/vue@npm:^1.3.0: No candidates found
➤ YN0000: └ Completed in 22s 953ms
➤ YN0000: · Failed with errors in 22s 972ms

根据 npmjs.com,包

@netlify/zip-it-and-ship-it
在所请求的版本中可用:

我最近在使用不同的软件包时多次遇到此错误。

这个错误到底告诉我什么以及为什么会发生这种情况?

yarnpkg netlify yarnpkg-v2 netlify-cli
1个回答
0
投票

我必须使用yarn 3.6.4而不是4.0.2来消除这个错误

yarn set version 3.6.4

© www.soinside.com 2019 - 2024. All rights reserved.