I have logged in to Vercel using my Github account.
I run the command npm install -g vercel in Visual Studio Code (in the relevant project directory), it installs successfully but when I run 'vercel' or 'vercel login' it gives me the error:
*vercel : The term 'vercel' 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
- vercel login
+ CategoryInfo : ObjectNotFound: (vercel:String) [], CommandNotFoundException + FullyQualifiedErrorId : CommandNotFoundException*
Any advice will be appreciated!! Thanks
Your PowerShell doesn't know the path where vercel located. To run vercel scripts you have to manually install or run the .ps1 script for the Powershell.
Run this script with PowerShell:
C:\Users\YourUserName\AppData\Roaming\npm\vercel.ps1