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.

- 9,653
- 16
- 82
- 149

- 111
- 1
- 1
- 5
-
2Did you `npm install -g @angular/cli` ? – Matt Walterspieler Jun 25 '19 at 13:34
-
Have you tried raising this issue on Angular's Github? – wentjun Jun 25 '19 at 14:21
-
@wentjun I am having the same issue, raised it an angulars github, they closed it and sent me here. Apparently, they dont find it to be a bug lol. Very helpful crowd over there https://github.com/angular/angular-cli/issues/15692#event-2667473843 – pixel Sep 27 '19 at 14:40
-
Same here, as before, Angular github is useless place to ask about angular issues – pixel Nov 20 '19 at 22:35
4 Answers
I also lost access to my commands after moving over to zsh following the Catalina upgrade. This fixed it for me:
source /Users/YOURUSERNAME/.bash_profile
In order to get these changes to persist, I used oh-my-zsh (https://github.com/robbyrussell/oh-my-zsh).
Install with curl:
sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"
Then modify your .zshrc file:
vi ~/.zshrc
Underneath this line: source $ZSH/oh-my-zsh.sh
I simply added the command I mentioned at the start of the post:
source /Users/YOURUSERNAME/.bash_profile
Save the file as you normally would with vi/vim: :wq
Oh-my-zsh is also capable of a lot of cool things so be sure to read the documentation.

- 396
- 3
- 13
-
1
-
-
1
-
True - should have mentioned vi is a bit of a pain for those who aren't familiar. – Dan L Jan 14 '20 at 17:40
The angular-cli has to be installed on your machine.
install the cli
by running the command : npm install -g @angular/cli

- 2,368
- 2
- 23
- 33
-
Yes, I'ts installed, but before the new version of Mac all was running well. Now I received this error : Your global Angular CLI version (8.0.4) is greater than your local version (7.3.9). The local Angular CLI version is used. To disable this warning use "ng set --global warnings.versionMismatch=false". – Julianh1805 Jun 25 '19 at 14:19
-
@Julianh1805 That's not an error its a warning, This is because of the angular-cli version specified in your projects package.json file is older than your global cli version. If you want to get rid of it, upgrade the project's angular version to match with the global veriosn of the cli (8.0.4 in your case) – B45i Jun 25 '19 at 15:24
-
1I tried uninstalling, reinstalling and I did not even have a project so there is no way to complain about angular version in my project being older than global cli version. I also linked it, no success. Angular github is useless, they just closed it and refered to ask on so – pixel Sep 27 '19 at 14:42
-
I'm in the same situation, I tried every thing like you but it's not working. – Raphaël Etang-Salé Oct 14 '19 at 17:19
check with node version you're on. Download here - https://github.com/nvm-sh/nvm
For me I encountered same problem with version 8.
nvm ls
it should list node version - using version 13 of node - worked for me.
nvm install 13
npm install -g @angular/cli
should work now.

- 5,035
- 2
- 41
- 43
If you had previously gone through the steps by sindresorhus to "Install npm packages globally without sudo" for bash, do them again for zsh. https://github.com/sindresorhus/guides/blob/master/npm-global-without-sudo.md

- 1,798
- 1
- 22
- 33