Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

Usage Error when running `yarn global add $PWD` with yarn 2+

オープン
#1 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
3/5
見積もり時間
1〜2日
初心者へのやさしさ
25/100
issue の種類
バグ
明瞭さ
説明が足りない
活発さ
停滞
技術スタック
node.js
領域
cli, tooling

調査の方向性

ファイル名もテスト名も指定されていません。Node 19.0.0 と Yarn 3.2.4 で yarn global add $PWD と yarn dlx add $PWD を再現し、その後、プロジェクトのインストールまたはパッケージのエントリポイントを調査してください。サポート対象のコマンドについて合意するか、Yarn 2+ でプロジェクトをインストールするための解決策を文書化すれば完了です。

索引モデルが issue の本文から書いたものです。

説明

documentation

I get the following error when running the yarn global add $PWD command:

graph-validator git:(main) ✗ yarn global add $PWD
Usage Error: The 'yarn global' commands have been removed in 2.x - consider using 'yarn dlx' or a third-party plugin instead

So I tried yarn dlx add $PWD just in case and got this output:

➜  graph-validator git:(main) ✗ yarn dlx add $PWD
➤ YN0000: ┌ Resolution step
➤ YN0000: └ Completed
➤ YN0000: ┌ Fetch step
➤ YN0013: │ add@npm:2.0.6 can't be found in the cache and will be fetched from the remote registry
➤ YN0000: └ Completed
➤ YN0000: ┌ Link step
➤ YN0000: └ Completed
➤ YN0000: Done in 0s 388ms

Internal Error: Binary not found (add) for root-workspace-0b6124@workspace:.
    at z9 (/Users/trobbins/.cache/node/corepack/yarn/3.2.3/yarn.js:423:1838)
    at Object.VDe (/Users/trobbins/.cache/node/corepack/yarn/3.2.3/yarn.js:423:2354)
    at /Users/trobbins/.cache/node/corepack/yarn/3.2.3/yarn.js:601:306
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async ar.mktempPromise (/Users/trobbins/.cache/node/corepack/yarn/3.2.3/yarn.js:314:68744)
    at async Rm.execute (/Users/trobbins/.cache/node/corepack/yarn/3.2.3/yarn.js:597:49122)
    at async Rm.validateAndExecute (/Users/trobbins/.cache/node/corepack/yarn/3.2.3/yarn.js:345:673)
    at async Bs.run (/Users/trobbins/.cache/node/corepack/yarn/3.2.3/yarn.js:359:2087)
    at async Bs.runExit (/Users/trobbins/.cache/node/corepack/yarn/3.2.3/yarn.js:359:2271)
    at async i (/Users/trobbins/.cache/node/corepack/yarn/3.2.3/yarn.js:446:12696)

Specs:

  • node v19.0.0
  • yarn v3.2.4
主要言語
Clojure
スター
52
フォーク
3
PR マージ指標
30日以内にマージされた PR はありません

環境構築

このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

logseq/graph-validator のほかの issue

logseq/graph-validator の issue をすべて見る

似ている issue

Clojure の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。