-
Notifications
You must be signed in to change notification settings - Fork 190
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
corepack won't install yarn #178
Comments
That's strange, I don't repro it 🤔 |
What version of Corepack are you using? |
I used Version is
|
On more recent versions, we've switched the default |
To upgrade from windows install with machine wide nodejs... I wonder if I can setup winget to install nodejs inside appdata. I use
|
|
I had this issue as well, trying to install yarn 3.1.1 on windows. Corepack version 0.14.0 My workaround was to create the 3.1.1 folder in |
I am currently having this issue on corepack v0.14.2.
Also, I am trying to set up a build server and I'm concerned that using the user's appdata folder will be problematic if the build process doesn't use the logged in user. Perhaps it would be a good idea to consider using a location like the one returned by |
Same issue with corepack --version: 0.14.2 and a fresh install of node v18.12.1 |
Same here. Windows 11, Corepack 0.14.1, fresh Node 16.18.1 install, trying to install Yarn 3.
There is a "1.22.19" directory from having run |
Hi all, I encountered a similar issue with NPM and tried to identify a way to reproduce it. Environment:
Project: directory containing only a {
"packageManager": "[email protected]"
} Basically, here's what I do:
Results:
However, command 8 successfully returns Please find enclosed output with each Node.js/Corepack distribution. It seems the issue is also present with Node 18 distributions. Thanks in advance for your help! node-16.16.0-output.log EDIT: Not sure it is relevant, but I forgot to mention that my %USERPROFILE% environment variable contains a space: |
If I manually go to |
A workable workaround from #246 for Windows users:
|
I had this problem. The culprit was Corepack was properly installing yarn, but then it tried to use that old version. |
After seeing this error, I tried to assist it by making the directory but yarn.js is not found
The text was updated successfully, but these errors were encountered: