How do I get ng command to work in Codespaces? #27184
-
Does the ng command work in Codespaces? I have just started playing with the beta and am wondering how to get my code to actually compile as it does in my VS Code environment. |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments
-
Hi Abhijit, the Angular CLI isn’t installed by default; you need to install the Angular CLI using the terminal feature in the Codespace:
AngularHope that helps |
Beta Was this translation helpful? Give feedback.
-
I tried to install the angular cli but it doesn’t look like working. Please check |
Beta Was this translation helpful? Give feedback.
-
Thanks for reporting this. It looks like there’s a bug in the PATH. Run You can also cause this to always execute by running the following:
|
Beta Was this translation helpful? Give feedback.
-
This is fixed in this PR – it should be deployed to Codespaces over the next couple days: microsoft/vscode-dev-containers#686 |
Beta Was this translation helpful? Give feedback.
Hi Abhijit, the Angular CLI isn’t installed by default; you need to install the Angular CLI using the terminal feature in the Codespace:
npm install -g @angular/cli
Angular
Hope that helps