Open flamusdiu opened 7 years ago
Are you on the latest Windows update (creators update)? The ability for non-elevated processes to create symlink was only added in that update.
Umm, probably. I was looking around but this computer is using a Win 10 Ed license. I am not seeing a build number anywhere. Still, it should fall back to the User profile location.
Probably this is because symlinks were not enabled on the computer, it requires and Admin access to enable development mode in windows and then symlinks should be available to non root users
Before trying to enable development mode, I can recommend to simply trying to run it as administrator, worked for me. Development mode might already be enabled.
Running as administrator gets me: ``` error An unexpected error occurred: "ENOENT: no such file or directory, scandir 'C:\Users\erik\AppData\Local\Yarn\Data\link\CryptVFS-Message'".
Do you want to request a feature or report a bug? bug
What is the current behavior? Running
yarn link
fails on Windows due to permissions by default.If the current behavior is a bug, please provide the steps to reproduce.
yarn link
from linking package.What is the expected behavior? It should create the link inside
C:\Users\{yarn}\AppData\Local\Yarn\.bin
or another location. This was added from #1585. However, as pointed out in #1183. That directory does exists by default for some reason. So trying to link would surely fail.Please mention your node.js, yarn and operating system version. Windows 10 x64 NPM 4.3.0 NodeJs 7.7.2 Yarn 0.23.4