Comments (7)
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 .patch
files there too, I am wondering how does that work? Is it possible that Termux applies the patch in a forced way themselves, so that we don't really have to wait for a fix on the original package? Or is it something else?
from cacache.
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
.patch
files there too, I am wondering how does that work? Is it possible that Termux applies the patch in a forced way themselves, so that we don't really have to wait for a fix on the original package? Or is it something else?
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.
from cacache.
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?
from cacache.
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 npm
you installed through apt/pkg install nodejs
contains patched files, the moveFile
function will not call fs.link
. But if you update it manually, the patched file will be overridden.
from cacache.
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 npm
manually?
from cacache.
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
npm
manually?
Emmm... I have no idea. After a fresh install of nodejs, the move-file.js
in $PREFIX/lib/node_modules/npm/node_modules/cacache/lib/util
should only contains a workable moveFile
function. If you still get the same error after a fresh install of nodejs through apt or pkg, please report this bug to https://github.com/termux/termux-packages.
from cacache.
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).
from cacache.
Related Issues (20)
- [BUG] TypeError: buckets.map is not a function => app crash HOT 3
- [Feature] Async iterator over ls.stream HOT 2
- какаш 😂🤣
- [BUG] cacache ignores npm cache config HOT 2
- [ISSUE] Explain to me why this is a stupid use of cacache (storing simple key/value pairs with a simplified cacache interface) HOT 4
- [BUG] `rm.all` doesn't delete anything on Windows HOT 3
- [QUESTION] Get info by integrity? HOT 1
- [BUG] @npmcli/move-file is dilicated HOT 1
- [BUG] put.stream can crash the process with unhandled exception, even when error handler is attached
- [Vulnerability] [email protected] dependency [email protected] contains memory leak HOT 1
- [FEATURE] custom integrity method / digest algorithm (xxhash) HOT 1
- [BUG] EMFILE error in environment with low file descriptors limit HOT 3
- [BUG] CVE-2021-27290 due to using old version of `ssri` HOT 9
- CVE-2020-7774 HOT 1
- [BUG] Put failed due to TypeError: Data must be a string or a buffer
- [FEATURE] implement reference counting HOT 1
- [BUG] calling verify() should not modify the time property
- Could you help remove the vulnerability in your package? HOT 1
- [BUG] cacache package depends on vulnerable version of tar HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cacache.