-
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
Yarn install error on Azure App Service #6604
Comments
Same issue for me detailed here: https://stackoverflow.com/questions/53078508/yarn-eperm-operation-not-permitted-on-symlink-on-azure-app-service It seems that any version after 1.10.0 doesn't work with those symlink errors. The strange thing is that those |
This error does not repro on Windows 10 outside of the Azure sandbox env - We need to assume this is a conflict with the Azure sandbox. Did anyone open an issue over on Azure / Kudu? |
@yoadsn as far as I could tell it's a Windows Server 2016 environment - if you could try that in the meantime. I'll see about opening an issue there and linking back. |
My theory is that the symlinks created here don't work on all Windows versions (iirc, symlink creation required elevated privileges in older Windows versions, which would be consistent with the EPERM error). If you can reproduce the issue somewhere, can you try making a PR to replace the symlink creation with |
@arcanis if you are referring to me, I am happy to edit the code directly on git but I wouldn't know how to compile yarn to test it. Secondly, I'm not sure if there is a relevant repository for Azure App Service host, or at least I couldn't find one... |
Compiling yarn for dev should just be a matter of For "production" use (that you can then push to the system that fails in order to test it there), you can run |
@arcanis Following your suggestion, using cmdshim seems to overcome this problem. Tested on actual Azure Web App Services deployment on a reasonably sized project. |
Thank you for fixing this @yoadsn ! |
* the issue with symlinks on Azure App Service builds has been fixed * see yarnpkg/yarn#6604 for more info
* No longer need to fix yarn version at 1.10 * the issue with symlinks on Azure App Service builds has been fixed * see yarnpkg/yarn#6604 for more info * Lock to 1.12.3
Using yarn version 1.12.1 on Azure App Service errors during installation.
What is the current behavior?
Error during installation of dependencies
Yarn error log attached for more info.
yarn-error.log
What is the expected behavior?
Correct installation
Please mention your node.js, yarn and operating system version.
Node: 8.11.1
Yarn: 1.12.1
OS: Windows
The text was updated successfully, but these errors were encountered: