CLI via NPM doesn't work

Repost from https://github.com/supabase/cli/issues/441

https://github.com/supabase/cli/issues/127#issuecomment-1226884931

Let the powershell terminal speak for itself
> npm i supabase
changed 1 package, and audited 526 packages in 3s
found 0 vulnerabilities

> npx supabase -h
'supabase' is not recognized as an internal or external command,
operable program or batch file.


I have tried doing it using the global flag too. I have my PATH environment variables set up correctly too, so that's not the issue.
> npm i supabase -g     

added 14 packages, and audited 15 packages in 4s
found 0 vulnerabilities

> npm list -g --depth 0
C:\Users\Username\AppData\Roaming\npm
└── supabase@1.4.2

> supabase login
supabase : The term 'supabase' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the 
name, or if a path was included, verify that the path is correct and try again.
At line:1 char:1
+ supabase login
+ ~~~~~~~~
    + CategoryInfo          : ObjectNotFound: (supabase:String) [], CommandNotFoundException
    + FullyQualifiedErrorId : CommandNotFoundException


NPM version: 8.3.1
Node version: 17.4.0
Docker version: 20.10.17, build 100c701
OS: Windows 10 Pro (21H2 19044.1949) 64bit
Was this page helpful?