
Solve Error: This command is not available when running the Angular CLI outside a workspace.
Solve Error: This command is not available when running the Angular CLI outside a workspace.
Solve Error: This command is not available when running the Angular CLI outside a workspace.
Content
7.332 -> Sat Sri Akaal Namaste Aadab Friends Welcome again to My Channel Techie Davinder
12.787 -> In today's video
14.94 -> If we have an angular project and you are trying to run your own project
21.824 -> And you have this error again and again while running the program.
26 -> That you are working outside of Workspace, then how can you overcome the error?
30.001 -> so, the process which is very simple because actually when we create a new workspace
36.424 -> So, we run NG command in current working folder and create our project.
43.16 -> when we run this command
47.353 -> What actually happens is that the command creates a folder with name of our workspace?
57.266 -> But in terminal we are still in the same folder from where we have executed the command.
69.227 -> When I created a workspace, command created that folder of workspace.
76.451 -> So how can we remove the error now, so the step is very simple here.
81.677 -> The command that we need to run is Change Directory (CD)
84.86 -> Currently We are in project1 directory
86.974 -> So, if here I take cursor up to the vision way directory
91.462 -> then path is displayed
94.736 -> that vision way folder is inside the project1, Then I will have to run the Change Directory Command and here I will write the VisionWay.
102.001 -> Change Directory To Vision Way
103.623 -> Now i will try to run NG sereve -o command after changing directory
107.067 -> Here i run the command
111.429 -> So as soon as I run the command,
114.406 -> The system asks to choose from about policy.
119.647 -> that, if we want to share our data, Then I choose yes.
125.893 -> Our process will go ahead.
128.087 -> So you can see what we have right now.
130.088 -> Browser application bundles are starting to generate so our command is right now
134.274 -> working
135.792 -> So, in this way, if you are facing this error in your project, then it will be solved with this method.
142.427 -> You can see now our application is running now
145.749 -> while talking to you with default
149.034 -> Workspace
152.093 -> So that's how you can rectify error in angular in Visual Studio code
157.801 -> If you liked this video of mine, then definitely like and share this video.
160.808 -> And subscribe to my channel guys don't forget thanks
Source: https://www.youtube.com/watch?v=dZtQfJ9H3HA