Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Zsh : command not found : ng on new Mac OS Catalina

I have download the new Mac OS Version Beta of Catalina. Now I should start to use Zsh. But when I want to run a Angular project in Atom, I receveid this message : "The default interactive shell is now zsh. To update your account to use zsh, please run chsh -s /bin/zsh. For more details, please visit https://support.apple.com/kb/HT208050." I'am already using zsh Terminal but he doesn't found the ng commands.

like image 460
Julianh1805 Avatar asked Jun 25 '19 13:06

Julianh1805


People also ask

Why is NG not found?

The error “ng command not found” occurs when your system's shell cannot find the path to the ng cli binary. There are three major causes of this error: The ng CLI is not installed. The ng CLI is located in a different directory.

Where is zsh on Mac?

zshrc file will be located in the users home directory, or ~/, and this user . zshrc file is where you'd place customizations to the z shell. If you have not yet manually created a . zshrc file, the file will not exist by default.

How do you find the NG command?

To solve the error "ng: command not found", install the angular cli package globally by running npm install -g @angular/cli@latest and restart your terminal. If the command fails, run it with sudo and make sure the correct PATH is set in your system's environment variable.


1 Answers

The angular-cli has to be installed on your machine.

install the cli by running the command : npm install -g @angular/cli

like image 160
B45i Avatar answered Oct 13 '22 20:10

B45i