I broke spago trying to update to @next

Uninstalled spage (old) and installed spago@next. Now when I run spago init I get:

Workspace/purescript/test via  v21.6.1
❯ spago init
file:///Users/guy/.pnpm/global/5/.pnpm/spago@0.93.35/node_modules/spago/bin/bundle.js:47320
                  throw util.fromLeft(step3);
                  ^

Error: The module '/Users/guy/.pnpm/global/5/.pnpm/better-sqlite3@11.1.2/node_modules/better-sqlite3/build/Release/better_sqlite3.node'
was compiled against a different Node.js version using
NODE_MODULE_VERSION 127. This version of Node.js requires
NODE_MODULE_VERSION 120. Please try re-compiling or re-installing
the module (for instance, using `npm rebuild` or `npm install`).
    at Module._extensions..node (node:internal/modules/cjs/loader:1475:18)
    at Module.load (node:internal/modules/cjs/loader:1212:32)
    at Module._load (node:internal/modules/cjs/loader:1028:12)
    at Module.require (node:internal/modules/cjs/loader:1237:19)
    at require (node:internal/modules/helpers:176:18)
    at bindings (/Users/guy/.pnpm/global/5/.pnpm/bindings@1.5.0/node_modules/bindings/bindings.js:112:48)
    at new Database (/Users/guy/.pnpm/global/5/.pnpm/better-sqlite3@11.1.2/node_modules/better-sqlite3/lib/database.js:48:64)
    at connectImpl (file:///Users/guy/.pnpm/global/5/.pnpm/spago@0.93.35/node_modules/spago/bin/bundle.js:83122:12)
    at file:///Users/guy/.pnpm/global/5/.pnpm/spago@0.93.35/node_modules/spago/bin/bundle.js:83375:12
    at runSync (file:///Users/guy/.pnpm/global/5/.pnpm/spago@0.93.35/node_modules/spago/bin/bundle.js:46977:21) {
  code: 'ERR_DLOPEN_FAILED'
}

Node.js v21.6.1

Any idea where I’ve gone wrong?

I think your node.js version is to old

Good guess. All better now. (I forgot that I had installed Volta and was trying to upgrade with Homebrew, so that was good to learn.) Thanks!