-
Notifications
You must be signed in to change notification settings - Fork 2.7k
Yarn should normalize permissions when untarring packages. #961
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
Comments
Same error for me:
|
FYI: Bug is still reproducible on
|
Reproduced on:
|
I ran into this today with yarn 0.18 |
Seeing the same problem, only windows machines. Yarn v0.19.1 on Windows 10 package is RXJS 5.0.3 |
I just ran into this as well on yarn v0.21.3. The interesting this is that Edit: After playing with the cache a bit, I notice that something still has control of the package |
For everyone experiencing same problem on Windows please try running |
@Zacorich That may be a temporary workaround, but should not be considered a solution. |
I tried opening the Windows command line with Administrator rights, but I got a similar error:
|
Same error on Windows when running with Administrator rights. I'm here from the advanced angular seed project. My issue seems to first be with the There's also this weird thing I've noticed with My error message:
|
This should be fixed in 0.23.x |
version 0.24.5 still has this problem on MacOS 10.12.6 |
I am still seeing this issue. I was on 0.23. To be sure, I updated to 1.3.2 and I still see it. It is happening on my auto build server. (So it is a fresh install when there is nothing in the node_modules folder.) Here is the output:
I opened the error log and this was what was at the end (after success for a bunch of other packages).
If I remove the read-only flag on my yarn.lock file then it works fine.... Not sure why it needs to update the lock file after a fresh install... |
Do you want to request a feature or report a bug?
This is a bug report.
What is the current behavior?
Yarn keeps the permissions of the archives is untars intact, while npm normalizes them. This means some npm packages cannot be installed using yarn.
If the current behavior is a bug, please provide the steps to reproduce.
Create a folder with the following package.json:
Run
yarn
using a version of yarn with support for scoped modules (e.g.,master
).Note: This is not an issue with scoped modules in general. Other scoped modules work on
master
.What is the expected behavior?
The operation should succeed (as it does with
npm install
), and the the permissions should be as follows:I don't think it's required that the date for "lib" be set to the current date.
npm install
just does this for some reason.Instead, the operation does not succeed:
Note: untarring
https://registry.npmjs.org/@types/history/-/history-2.0.38.tgz
results in:Note that
lib
does not have executable ("cd") permissions. While we could ask DefinitelyTyped (@types/history
) to fix their permissions, I'm reporting the issue here in case you with to improve compatibility with npm packages, especially in case there are other strange packages.Please mention your node.js, yarn and operating system version.
ee07644ed9080a22ca9742c9383100b8f03221a3
(master
)The text was updated successfully, but these errors were encountered: