Code Monkey home page Code Monkey logo

Comments (7)

papb avatar papb commented on May 29, 2024

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.

licy183 avatar licy183 commented on May 29, 2024

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.

papb avatar papb commented on May 29, 2024

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.

licy183 avatar licy183 commented on May 29, 2024

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.

papb avatar papb commented on May 29, 2024

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.

licy183 avatar licy183 commented on May 29, 2024

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.

moltar avatar moltar commented on May 29, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.