How do I get ng command to work in Codespaces?

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.

Hi Abhijit, the Angular CLI isn’t installed by default; you need to install the Angular CLI using the terminal feature in the Codespace:

  1. Open the Menu > Terminal > New Terminal
  2. Run npm install -g @angular/cli

Hope that helps

1 Like