'ng' is not recognized as an internal or external command/angular cli ng commands not working

 'ng' is not recognized as an internal or external command / angular cli ng commands not working



In this post, I’m going to list the most common errors you may encounter while getting started with Angular. For each error, I’m going to explain what it means and how to solve it

This error is simply telling you that Angular CLI is either not installed or not added to the PATH. To solve this error, first, make sure you’re running Node latest or higher. A lot of errors can be resolved by simply upgrading your Node to the latest stable version

1).Open up the Terminal on macOS/Linux or Command Prompt on Windows and run the following command to find out the version of Node /node package manager / angular cli
a).node js version
    node --version 
    node -v

a).node package manager version
    npm -v

c).angular cli version
    ng v
2).Then you need to install angular cli at globally
    npm install -g @angular/cli

3). then also note run the you should set up your local computer envarment path

















No comments:

Post a Comment

Thank You For Your Great Contribution

Featured Post

how to find n number of nodes have child or cildren

 how to find n number of nodes have child or cildren for that we use recursive function  const   data = {     'id' : '0' ,...

Popular Posts