supabase / cli

Supabase CLI. Manage postgres migrations, run Supabase locally, deploy edge functions. Postgres backups. Generating types from your database schema.
https://supabase.com/docs/reference/cli/about
MIT License
940 stars 178 forks source link

pnpm dlx supabase Segmentation Error #2354

Open camilosasia opened 1 month ago

camilosasia commented 1 month ago

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

sweatybridge commented 1 month ago

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.

camilosasia commented 4 weeks ago

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.