Lng options not working

Hi, I am new to the lightning js platform and installed the Lightning-SDK and CLI. The only issue i have encountered so far is i can’t use the lng options like lng build. The error is “Please make sure you are running the command in the Application directory”. The code is in the same directory and i have also created the new app by using “lng create” commands and that was working fine only issue is with the sample code provided.
As suggested i have also moved the working code to C drive but same error occured.
“lng create” and “lng options” are working but not “lng build and serve commands”.
Any suggestions?

1 Like

I haven’t used Lighting on Windows but not sure if you installed Lightning globally instead of running your instance from your repository’s node_modules?

Hi! From the looks of your screenshot you’re trying to execute the build command in the CLI source folder. You should execute this command in the app folder created via the lng create command