Giter Club home page Giter Club logo

Comments (9)

guybedford avatar guybedford commented on July 4, 2024

//cc @mochaaP this seems like it may be related to your recent work. Will the release of #91 help here?

from cjs-module-lexer.

mochaaP avatar mochaaP commented on July 4, 2024

We haven't cooperated that change in any released versions yet, both in nodejs20 and nodejs-cjs-module-lexer. Also, this seems to be a distro-specific issue, so please raise it in https://bugzilla.redhat.com/

Besides, I could not reproduce this on f39 with the following packages:

nodejs-docs-1:20.12.0-1.fc39.noarch
libuv-1:1.48.0-1.fc39.x86_64
nodejs-libs-1:20.12.0-1.fc39.x86_64nodejs-undici-6.11.1-2.fc39.noarch
nodejs-cjs-module-lexer-1.2.3-2.fc39.noarch
nodejs-full-i18n-1:20.12.0-1.fc39.x86_64
nodejs-npm-1:10.5.0-1.20.12.0.1.fc39.x86_64
nodejs-1:20.12.0-1.fc39.x86_64 

Does your root filesystem support symlinks? /usr/lib/node_modules should be a symlink to node_modules_20 on Fedora 39+ and RHEL 10+.

from cjs-module-lexer.

mochaaP avatar mochaaP commented on July 4, 2024

Oh, I recalled what's the issue here. libuv made io_uring default from a while ago, and it got merged into Node.js. Unfortunately, the implementation (kernel? libuv?) is currently buggy and had various quirks when doing file I/Os. A workaround is to set UV_USE_IO_URING=0 in your environment variables.

from cjs-module-lexer.

mochaaP avatar mochaaP commented on July 4, 2024

Seemed to be a kernel regression. Tested with a clean f39 podman container on 6.9.0-0.rc4.37.fc41.x86_64, works well. @aswinbennyofficial Could you test it on Fedora 40?

from cjs-module-lexer.

aswinbennyofficial avatar aswinbennyofficial commented on July 4, 2024

@mochaaP I havent installed fedora 40 yet.

I have created a bug report on bugzilla https://bugzilla.redhat.com/show_bug.cgi?id=2276166

from cjs-module-lexer.

mochaaP avatar mochaaP commented on July 4, 2024

@guybedford since this isn't a cjs-module-lexer issue but a kernel/libuv/node one, we can close this here.

from cjs-module-lexer.

aswinbennyofficial avatar aswinbennyofficial commented on July 4, 2024

Oh, I recalled what's the issue here. libuv made io_uring default from a while ago, and it got merged into Node.js. Unfortunately, the implementation (kernel? libuv?) is currently buggy and had various quirks when doing file I/Os. A workaround is to set UV_USE_IO_URING=0 in your environment variables

I tried this still was having the same error

image

image

from cjs-module-lexer.

mochaaP avatar mochaaP commented on July 4, 2024

Forwarding from rhbz.


OK, I figured this out.

You are running npm as root and your npmrc sets prefix=/usr, which overrides /usr/lib/> node_modules to a folder instead of a symlink.
Please don't install npm packages globally, at least not installing to /usr/lib.

from cjs-module-lexer.

mochaaP avatar mochaaP commented on July 4, 2024

/tag invalid
/close

from cjs-module-lexer.

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.