如何使用 Yarn 3 更新从 Git 存储库安装的专有依赖项?
package.json
入口:
"@foo/utils": "git+https://gitlab+deploy-token-...:...@gitlab.com/foo/bar.git#ISSUE-6652-some-git-branch",
yarn up @foo/utils
导致以下错误:
➤ YN0027: @foo/utils@git+https://gitlab+deploy-token-...:...@gitlab.com/foo/bar.git#ISSUE-6652-some-git-branch can't be resolved to a satisfying range
Internal Error: The remote server failed to provide the requested resource
我需要将包更新为该分支中的最新提交,我目前知道的唯一方法是手动删除该包的条目yarn.lock
,但我想这不是应该做的事情。