The Yarn setup does not work on Windows
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 3/5
- Tempo stimato
- 1-2 giorni
- Idoneità per principianti
- 35/100
- Tipo di issue
- Documentazione
- Chiarezza
- Abbastanza chiara
- Stato di attività
- Ferma
- Stack tecnologico
- node.js, powershell
- Ambito
- documentation, tooling
Direzione di ricerca
Inizia con la sezione sullo sviluppo locale della documentazione di installazione e riproduci i comandi segnalati in un checkout pulito su Windows 10. Esamina i passaggi relativi a nvm e Yarn attorno a nvm install e yarn; la documentazione è completa quando un contributore che usa Windows può completare la configurazione senza gli errori di versione e di rete segnalati.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
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 git@github.com: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 npm@8.19.2 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.
- Lingua principale
- TypeScript
- Stelle
- 74
- Fork
- 652
- Merge medio
- 2g 50m
- PR unite (30g)
- 12
Guida per i contributori
Apri la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di moodle/devdocs
-
bug documentation help wanted needs-triage
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
-
documentation enhancement help wanted needs-triage
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
-
bug documentation help wanted needs-triage
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 65/100
-
bug documentation good first issue needs-triage
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 72/100
-
bug documentation help wanted needs-triage
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 72/100
Tutte le issue di moodle/devdocs
Issue simili
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 70/100
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
mksglu/context-mode#1200 ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
jaegertracing/jaeger-ui#4506 ·
-
area:desktop area:ui bug platform:macos
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
anthropics/claude-code#96687 ·
-
good first issue
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 95/100
AOSSIE-Org/DebateAI#582 · 2 commenti ·