pnpm dlx supabase Segmentation Error
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:
- Upgrade pnpm to the latest version with
npm install -g pnpm - Run
pnpm dlx supabase - 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
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.
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.
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.
pnpm rebuild in your project directory might help