CLI Issues on lng -V and lng create

On VS Code in Windows 11, I installed the Lightning CLI using : npm install @lightningjs/sdk. It got installed and did not get any errors.

When i tried running lng -V or lng Create, i am getting the following error:

lng : The term ‘lng’ 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

  • lng create
  •   + CategoryInfo          : ObjectNotFound: (lng:String) [], CommandNotFoundException
      + FullyQualifiedErrorId : CommandNotFoundException
    
    

Can i get some help please ?

The path to lng most likely isn’t in your executable path… Try following

@prashant.chothani

You should install cli using the below command

npm install -g @lightningjs/cli