-
Notifications
You must be signed in to change notification settings - Fork 30
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
[BUG] cacache doesn't work on Android #155
Comments
Thank you so much for investigating this. Hopefully a solution will be applied soon. I noticed that the "possible patch" you linked above is present in the Termux repository, and I noticed there are other |
When building packages for Termux, the building system of Termux packages will apply this patch to the sources, thus the deb files will contain a patched npm. But when npm is updated, the patched files will be overridden by the files from official package, so this patch will not work anymore. |
But from the way you said it, it looks like npm should work right after installing in termux, as long as I don't update npm, but as mentioned in the other issue this is not the case, why? |
Because |
Sorry if I wasn't clear, that's not what I tried to ask. My question is: considering the patch exists, why do I still get an error, even if I don't update |
Emmm... I have no idea. After a fresh install of nodejs, the |
I know this is truly an edge case, but I am running into this linking issue when using a mounted fs that does not support links (s3fs-fuse). |
Is there an existing issue for this?
Current Behavior
Expected Behavior
NPM install package successfully.
Steps To Reproduce
In Termux, run
Then error message will occur.
fs.link
will try to use hard link, which is disallowed by seccomp in Android. The maintainer of termux packages have applied a patch to solve this, but when users updatecacache
ornpm
, the patch will not work anymore.Related issues: termux/termux-packages#11293, termux/termux-packages#13293
Possible patch: https://github.com/termux/termux-packages/blob/master/packages/nodejs/deps-npm-node_modules-cacache-lib-util-move-file.js.patch
Environment
The text was updated successfully, but these errors were encountered: