Bug 2276166
| Summary: | Corrupts nodejs whenever i download a package via npm | ||||||
|---|---|---|---|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | qmxs98xl | ||||
| Component: | nodejs-cjs-module-lexer | Assignee: | Jan Staněk <jstanek> | ||||
| Status: | CLOSED NOTABUG | QA Contact: | |||||
| Severity: | medium | Docs Contact: | |||||
| Priority: | unspecified | ||||||
| Version: | 39 | CC: | fedora, jstanek | ||||
| Target Milestone: | --- | ||||||
| Target Release: | --- | ||||||
| Hardware: | x86_64 | ||||||
| OS: | Linux | ||||||
| Whiteboard: | |||||||
| Fixed In Version: | Doc Type: | If docs needed, set a value | |||||
| Doc Text: | Story Points: | --- | |||||
| Clone Of: | Environment: | ||||||
| Last Closed: | 2024-04-20 16:28:47 UTC | Type: | Bug | ||||
| Regression: | --- | Mount Type: | --- | ||||
| Documentation: | --- | CRM: | |||||
| Verified Versions: | Category: | --- | |||||
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||
| Cloudforms Team: | --- | Target Upstream Version: | |||||
| Embargoed: | |||||||
| Attachments: |
|
||||||
|
Description
qmxs98xl
2024-04-20 01:50:38 UTC
This is likely a kernel io_uring bug. See <https://github.com/nodejs/cjs-module-lexer/issues/92#issuecomment-2066052271>. (In reply to Zephyr Lykos from comment #1) > This is likely a kernel io_uring bug. > > See > <https://github.com/nodejs/cjs-module-lexer/issues/92#issuecomment- > 2066052271>. https://github.com/nodejs/cjs-module-lexer/issues/92#issuecomment-2067541709 I did try to put env variable still facing issues. Do you think changing to fedora 40 will fix it? Hmm, seems this is another issue. With `UV_USE_IO_URING=1` the former io_uring shenanigans are still reproducible in rawhide. 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`. (In reply to Zephyr Lykos from comment #4) > 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`. Issue is that I need to install `@angular/cli` . If I dont install it globally then `ng` command is not working Things I did - `npm init` - `npm i @angular/cli` When I run ng - `bash: /usr/bin/ng: No such file or directory` (In reply to qmxs98xl from comment #5) > (In reply to Zephyr Lykos from comment #4) > > 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`. > > Issue is that I need to install `@angular/cli` . If I dont install it > globally then `ng` command is not working > > Things I did > - `npm init` > - `npm i @angular/cli` > > When I run ng > - `bash: /usr/bin/ng: No such file or directory` Also I have tried the same after installing fedora 40 |