i got an error while running angular cli by using "ng serve"-"You have to be inside an angular-cli project in order to use the serve command." But i am in the particular folder
@santhoshkumarch You should run the command inside Angular CLI project you created. Make sure you have .angular-cli.json file in the folder from which you are running the command.
Based on the error message, it appears you are using an older version of the CLI. I would recommend upgrading to the latest version.
npm uninstall -g angular-cli
npm cache clean
npm install -g @angular/cli
Thank you @delasteve ! You are an absolute gem!
I have run those identical commands a few times to try and resolve this issue; with the exception being that I have not done it with the -g flag. Rookie mistake I suppose.
Closing as above.
Finally it works :) Thank you @delasteve
npm install -g @angular/cli@latest
This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.
Read more about our automatic conversation locking policy.
_This action has been performed automatically by a bot._
Most helpful comment
Based on the error message, it appears you are using an older version of the CLI. I would recommend upgrading to the latest version.