-
Notifications
You must be signed in to change notification settings - Fork 2.7k
Open
Labels
Description
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.
C:\Users\{user}\Documents\angular\micro-blog\bin\kae>yarn link --verbose
yarn link v0.23.4
verbose 0.329 current time: 2017-05-07T10:05:58.266Z
verbose 0.352 Error: EPERM: operation not permitted, symlink 'C:\Users\{user}\AppData\Local\Yarn\config\link\kae\kae.js' -> 'C:\Program Files\nodejs\kae'
error An unexpected error occurred: "EPERM: operation not permitted, symlink 'C:\\Users\\{user}\\AppData\\Local\\Yarn\\config\\link\\kae\\kae.js' -> 'C:\\Program Files\\nodejs\\kae'".
info If you think this is a bug, please open a bug report with the information provided in "C:\\Users\\{user}\\Documents\\angular\\micro-blog\\bin\\kae\\yarn-error.log".
info Visit https://yarnpkg.com/en/docs/cli/link for documentation about this command.
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
johncrim