-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
If .yarnrc is hidden on Windows, yarn add [package] fails #4306
Comments
If we can't read this file, not sure we can't do much |
I had this issue too. Manually unhiding and rehiding ~.yarnrc in Explorer fixed it for me. |
Just want to say that I had to |
Why is this closed? The issue still exists. If you hide .yarnrc every add will end with error: EPERM. This also causes creat-react-app and other bootstrappers to fail. |
Because it's not a problem Yarn can fix as far as I know. If I'm incorrect, then a PR (that would explain in detail the problem and the resolution) will go a long way into fixing this 🙂 |
@arcanis Thanks for your response, I don't know much about the yarn's internals but I was supposing this was concerning to yarn since most applications does not have problems with hidding its dot files in windows. |
I don't understand why node.js developers have a mental block on this type of a problem. A hidden file is NOT a read-only file. Nor is it a non-existent file. Technically, all Unix files that start with "." are hidden. On Windows it is a separate flag, but the behavior should be the same. The file is available. Visibility settings are not the same as permissions. This is a BUG and should not have been closed. Here is a similar issue that node itself had: nodejs/node#5261 Only they owned the issue, called it a bug, and fixed it. |
I'm willing to take a stab at this! Leaving this note here so that I can come back to it in a few days. On Windows, opening a file in |
Sorry for being slightly off-topic, but why does the yarnrc file on Windows gets saved to the user's folder instead of %APP_DATA%? If the latter would be the case, there would be in my opinion no need to manually hide the file. |
Seems like you can also fix this on the command line:
Or, of you're using Git Bash:
|
Ok. I’m try to do it, I hope I can
Отправлено из Yahoo Почты на iPhone
Пользователь понедельник, сентября 13, 2021, 2:12 PM написал Lucas Schulze ***@***.***>:
hi my friends , go to c:/users/{pc name}/
show hidden file
properties .yarnrc
hidden uncheck
good luck
That worked for me, thanks bro!
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or unsubscribe.
|
Has this been fixed? |
Nope |
Do you want to request a feature or report a bug?
bug
What is the current behavior?
The command
yarn add vue
fails with the error messageIf the current behavior is a bug, please provide the steps to reproduce.
yarn add vue
What is the expected behavior?
Yarn should recognize that .yarnrc exists, even if it a hidden file.
Please mention your node.js, yarn and operating system version.
Node.js version 6.11.2, yarn version 0.27.5, operating system Windows 10 Home, version 1703, build 15063.483
The text was updated successfully, but these errors were encountered: