cli icon indicating copy to clipboard operation
cli copied to clipboard

pnpm dlx supabase Segmentation Error

Open csasia opened this issue 1 year ago • 2 comments

Describe the bug Upon upgrading to the latest version of pnpm, running the command pnpm dlx supabase results in a segmentation fault error.

To Reproduce Steps to reproduce the behavior:

  1. Upgrade pnpm to the latest version with npm install -g pnpm
  2. Run pnpm dlx supabase
  3. Observe Segmentation Fault error.

Running pnpm dlx supabase@latest works fine with the latest version of pnpm. After downgrading pnpm to 8.15.7, the problematic command pnpm dlx supabase worked as intended.

System information

  • Version of OS: Windows 10 WSL
  • Version of pnpm: 9.1.4
  • Version of Node.js v20.14.0

csasia avatar May 31 '24 18:05 csasia

Does the error look similar to https://github.com/supabase/cli/issues/2251? If so, the fix could be to remove pnpm global store and re-install pnpm.

sweatybridge avatar Jun 03 '24 05:06 sweatybridge

It looks pretty similar, but I was not able to fix it by removing the pnpm global store. I even uninstalled Node.js and installed it again, but it didn't help.

The only way I was able to make it work was to use supase@latest instead of supabase, or to downgrade pnpm.

csasia avatar Jun 03 '24 17:06 csasia

I encountered a similar issue that began after I mistakenly ran pnpm dlx supabase list. After realizing my mistake, I canceled the command, but when I subsequently tried to run pnpm dlx supabase migration list, I faced problems.

Here’s what I’ve tried so far to resolve the issue:

  • Updated my Node.js version using NVM.
  • Cleared the PNPM global store.
  • Updated PNPM and the Supabase CLI.

Supabase CLI version: 1.108.0
Node.js version: v18.20.5

Unfortunately, I haven't found a solution yet. Any assistance would be appreciated!

Update

I reverted to an older Node.js version (v18.18) that I had installed, and now it works.

LuisReinoso avatar Dec 08 '24 21:12 LuisReinoso

pnpm rebuild in your project directory might help

4fort avatar Dec 26 '24 16:12 4fort