cli icon indicating copy to clipboard operation
cli copied to clipboard

Supabase cli doesn't work if run in Powershell

Open msdrigg opened this issue 3 years ago • 1 comments

Bug report

Describe the bug

To Reproduce

  1. Install supabase cli with npm i -g supabase
  2. Open windows powershell.
  3. Run supabase -v
  4. See error how a separate console opens up briefly, but nothing is printed in the calling powershell console

Expected behavior

Supabase cli should function correctly in powershell (just like it does in the standard cmd shell).

Screenshots

  • Supabase working in cmd
  • image
  • Supabase failing in powershell
  • image

System information

  • OS: Windows 10
  • Version of supabase cli: 1.6.0

msdrigg avatar Oct 05 '22 01:10 msdrigg

バージョン確認 VScode

バージョン確認2 windows terminal

It is working in my Windows 10 environment.

masakinihirota avatar Oct 06 '22 01:10 masakinihirota

Same issue here. In vanilla Command Prompts, its working.

karesztrk avatar Oct 27 '22 17:10 karesztrk

Hello, this appears to be a problem with npm -g global flag which we don't plan to support. Have you tried installing locally with

npm i supabase --save-dev

Or use an alternative package manager like scoop? https://github.com/supabase/cli#windows

Our chocolatey package is currently under review and will also be coming soon.

sweatybridge avatar Dec 06 '22 08:12 sweatybridge