The Yarn setup does not work on Windows
まだ誰も着手していません。
評価
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 初心者へのやさしさ
- 35/100
- issue の種類
- ドキュメント
- 明瞭さ
- おおむね明確
- 活発さ
- 停滞
- 技術スタック
- node.js, powershell
- 領域
- documentation, tooling
調査の方向性
インストール ドキュメントのローカル開発セクションから始め、Windows 10 のクリーンな checkout で報告されたコマンドを再現します。nvm install と yarn に関連する nvm と Yarn の手順を調査します。Windows のコントリビューターが、報告されたバージョンおよびネットワークのエラーなしでセットアップを完了できれば、ドキュメントは完成です。
索引モデルが issue の本文から書いたものです。
説明
What is the issue that you're experiencing?
I am trying to follow the instructions on https://moodledev.io/general/documentation/installation so I can contribute to devdocs from my normal Work laptop, which is Windows 10.
Unfortunately, the instrcutions at https://moodledev.io/general/documentation/installation#local-development don't work.
I re-tested using a clean checkout. Based on https://phoenixnap.com/kb/yarn-windows I tried a powershell windows running as Admin, having previously tried in a git-bash terminal They both fail in a similar way.
PS C:\Users\tjh238\workspace> git clone [email protected]:moodle/devdocs.git devdocs-test
Cloning into 'devdocs-test'...
remote: Enumerating objects: 146468, done.
remote: Counting objects: 100% (804/804), done.
remote: Compressing objects: 100% (336/336), done.
remote: Total 146468 (delta 467), reused 728 (delta 447), pack-reused 145664
Receiving objects: 100% (146468/146468), 232.68 MiB | 7.72 MiB/s, done.
Resolving deltas: 100% (125433/125433), done.
Checking out files: 100% (1001/1001), done.
PS C:\Users\tjh238\workspace> cd .\devdocs-test\
PS C:\Users\tjh238\workspace\devdocs-test> nvm install
Invalid version.
[SNIP standard nvm help]
Note, Windows NVM is different from linux one, so this does not work. Anyway, I already have Node from Moodle etc.
PS C:\Users\tjh238\workspace\devdocs-test> node -v
v16.14.0
Installing Yarn seems fine, except that I had alrady done it before, so had to force it:
PS C:\Users\tjh238\workspace\devdocs-test> npm i -g yarn
npm ERR! code EEXIST
npm ERR! path C:\tools\nvm\v16.14.0\yarn.cmd
npm ERR! EEXIST: file already exists
npm ERR! File exists: C:\tools\nvm\v16.14.0\yarn.cmd
npm ERR! Remove the existing file and try again, or run npm
npm ERR! with --force to overwrite files recklessly.
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\tjh238\AppData\Local\npm-cache\_logs\2022-10-17T11_30_33_289Z-debug-0.log
PS C:\Users\tjh238\workspace\devdocs-test> npm i -g yarn --force
npm WARN using --force Recommended protections disabled.
added 1 package, and audited 3 packages in 1s
found 0 vulnerabilities
npm notice
npm notice New minor version of npm available! 8.3.1 -> 8.19.2
npm notice Changelog: https://github.com/npm/cli/releases/tag/v8.19.2
npm notice Run npm install -g [email protected] to update!
npm notice
Then problem comes when you try to use yard:
PS C:\Users\tjh238\workspace\devdocs-test> yarn
yarn install v1.22.19
[1/4] Resolving packages...
[2/4] Fetching packages...
info There appears to be trouble with your network connection. Retrying...
info There appears to be trouble with your network connection. Retrying...
info There appears to be trouble with your network connection. Retrying...
info There appears to be trouble with your network connection. Retrying...
(Note: there is nothing wrong with my network connction. It is just an unhelpful error.)
I spent a bit of time at Global Moot DevJam trying to debug this with Sara, but it is all a black box, so I don't know what is wrong.
Note: other people think yarn works on Windows (e.g. https://phoenixnap.com/kb/yarn-windows#ftoc-heading-4 - with the same install instructions) so I don't know why this is failing.
Are you able to provide a patch for this?
If I can help fix this, I will, but I don't know where to start.
- 主要言語
- TypeScript
- スター
- 74
- フォーク
- 652
- 平均マージ
- 2日 50分
- マージ済み PR(30日)
- 12
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
moodle/devdocs のほかの issue
-
bug documentation help wanted needs-triage
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
-
documentation enhancement help wanted needs-triage
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
-
bug documentation help wanted needs-triage
難易度 1/5 1時間未満 初心者へのやさしさ 65/100
-
bug documentation good first issue needs-triage
難易度 1/5 1時間未満 初心者へのやさしさ 72/100
-
bug documentation help wanted needs-triage
難易度 1/5 1時間未満 初心者へのやさしさ 72/100
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 84/100
receptron/mulmoterminal#2264 ·
-
documentation
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
components-web-app/docs#96 ·
-
enhancement
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
simonsobs/tileviewer#114 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100