I'm trying to run ng serve
but I am getting
Error: This command is not available when running the Angular CLI outside a workspace. I have tried opening integrated terminal on VS code, but didn't work.
Does anyone has any idea on how to fix ng serve
error
Error: This command is not available when running the Angular CLI outside a workspace.
The whole idea behind is to add reCAPTCHA in web page built with angular and .NET, any suggestion on that is also appreciated.
It probably means that you are positioned inside of a wrong directory.
You should be positioned inside of directory where package.json is located.
Use: cd {path_to_your_angular_project}
In case nx is installed in your project, try replacing 'ng' with 'nx'. eg ng serve --> nx serve
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.