Open timhunt opened 2 years ago
Thanks for the detailed write-up TIm,
I don't have a Windows install available for testing at the moment, but I've been wanting to trt and migrate us to Yarn 2+ for this. I'll try and find some time this week (after the community dev meeting) to update my dev branch and let's see if that addresses things on Windows at the same time.
Note, GitPod seems to be an acceptable work-around.
(Apart from the fact it won't let me push, but downloading a git format-patch, then git am-ing and pushing from my laptop was a work-around.)
Hi Tim,
If you'd like to try running with yarn2, to see if that solves things I've just pushed a branch to https://github.com/moodle/devdocs/pull/395
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.
Note, Windows NVM is different from linux one, so this does not work. Anyway, I already have Node from Moodle etc.
Installing Yarn seems fine, except that I had alrady done it before, so had to force it:
Then problem comes when you try to use yard:
(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.