NPM error involving BREW

Hello! I've seen a few npm errors that I looked through before making this, but none appeared to be directly related to brew. As of two days ago to now, when running ujust update in terminal I get the following error when it gets to trying to update homebrew:
── 06:49:53 - Node Package Manager ─────────────────────────────────────────────
npm failed:
0: Command failed: `/home/linuxbrew/.linuxbrew/bin/npm root -g`

Stderr:
/usr/bin/env: ‘node’: No such file or directory
1: `/home/linuxbrew/.linuxbrew/bin/npm` failed: exit status: 127

Location:
src/steps/node.rs:80
Retry? (y)es/(N)o/(s)hell/(q)uit

── 06:57:28 - Performant Node Package Manager ──────────────────────────────────
pnpm failed:
0: Command failed: `/home/linuxbrew/.linuxbrew/bin/pnpm root -g`

Stderr:
/usr/bin/env: ‘node’: No such file or directory
1: `/home/linuxbrew/.linuxbrew/bin/pnpm` failed: exit status: 127
── 06:49:53 - Node Package Manager ─────────────────────────────────────────────
npm failed:
0: Command failed: `/home/linuxbrew/.linuxbrew/bin/npm root -g`

Stderr:
/usr/bin/env: ‘node’: No such file or directory
1: `/home/linuxbrew/.linuxbrew/bin/npm` failed: exit status: 127

Location:
src/steps/node.rs:80
Retry? (y)es/(N)o/(s)hell/(q)uit

── 06:57:28 - Performant Node Package Manager ──────────────────────────────────
pnpm failed:
0: Command failed: `/home/linuxbrew/.linuxbrew/bin/pnpm root -g`

Stderr:
/usr/bin/env: ‘node’: No such file or directory
1: `/home/linuxbrew/.linuxbrew/bin/pnpm` failed: exit status: 127
Any suggestions? Last time I installed anything new through brew was at least a couple weeks ago, so my environment hadn't directly changed as far as brew goes when the errors started. I'm running bazzite desktop on a full AMD rig.
1 Reply
Vrana the BunnyCat
Vrana the BunnyCatOP2mo ago
bazzite@fedora

bazzite:stable 
Bazzite 41 (FROM Fedora Kinoite)
Linux 6.13.5-102.bazzite.fc41.x86_64
14 mins
Spawned on Oct 28 2024

MS-7D69 (1.0)
AMD Ryzen 9 7950X3D (32) @ 5.76 GHz
AMD Radeon RX 7900 XTX [Discrete]
AMD Raphael
8.78 GiB / 61.94 GiB (14%)
1.75 TiB / 3.64 TiB (48%) - btrfs [Read-only]
2560x1440 @ 165 Hz in 24" [External, HDR]
3440x1440 @ 100 Hz in 34" [External, HDR] *
Corsair CORSAIR K70 RGB MK.2 Mechanical Gaming Keyboard Mouse
8BitDo Ultimate Wireless / Pro 2 Wired Controller

KDE Plasma 6.3.1
KWin (Wayland)
bash 5.2.32
topgrade
2729 (rpm), 70 (flatpak-system), 100 (flatpak-user), 209 (brew)
bazzite@fedora

bazzite:stable 
Bazzite 41 (FROM Fedora Kinoite)
Linux 6.13.5-102.bazzite.fc41.x86_64
14 mins
Spawned on Oct 28 2024

MS-7D69 (1.0)
AMD Ryzen 9 7950X3D (32) @ 5.76 GHz
AMD Radeon RX 7900 XTX [Discrete]
AMD Raphael
8.78 GiB / 61.94 GiB (14%)
1.75 TiB / 3.64 TiB (48%) - btrfs [Read-only]
2560x1440 @ 165 Hz in 24" [External, HDR]
3440x1440 @ 100 Hz in 34" [External, HDR] *
Corsair CORSAIR K70 RGB MK.2 Mechanical Gaming Keyboard Mouse
8BitDo Ultimate Wireless / Pro 2 Wired Controller

KDE Plasma 6.3.1
KWin (Wayland)
bash 5.2.32
topgrade
2729 (rpm), 70 (flatpak-system), 100 (flatpak-user), 209 (brew)
System info in case it helps. didn't fit into the initial post.

Did you find this page helpful?