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

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.
Was this page helpful?