As stated in the documentation, using a Windows 10 machine, to install Angular CLI in a machine with NodeJS and npm package manager
node -v
# v12.16.0
npm -v
# 6.13.4
the first time running
npm install -g @angular/cli
got similar message to yours
npm WARN deprecated request@2.88.2: request has been deprecated, see https://github.com/request/request/issues/3142
C:\Users\tiago\AppData\Roaming\npm\ng -> C:\Users\tiago\AppData\Roaming\npm\node_modules\@angular\cli\bin\ng
> @angular/cli@10.0.0 postinstall C:\Users\tiago\AppData\Roaming\npm\node_modules\@angular\cli
> node ./bin/postinstall/script.js
+ @angular/cli@10.0.0
added 269 packages from 206 contributors in 97.901s
Then, when running a second time, the message matched yours (notice the last line now doesn't say added 269 packages
; instead, updated 1 package
).
npm WARN deprecated request@2.88.2: request has been deprecated, see https://github.com/request/request/issues/3142
C:\Users\tiago\AppData\Roaming\npm\ng -> C:\Users\tiago\AppData\Roaming\npm\node_modules\@angular\cli\bin\ng
> @angular/cli@10.0.0 postinstall C:\Users\tiago\AppData\Roaming\npm\node_modules\@angular\cli
> node ./bin/postinstall/script.js
+ @angular/cli@10.0.0
updated 1 package in 8.691s
If I then type
ng --version
I didn't get an error like you. Instead, got the following result

_ _ ____ _ ___
/ \ _ __ __ _ _ _| | __ _ _ __ / ___| | |_ _|
/ △ \ | '_ \ / _` | | | | |/ _` | '__| | | | | | |
/ ___ \| | | | (_| | |_| | | (_| | | | |___| |___ | |
/_/ \_\_| |_|\__, |\__,_|_|\__,_|_| \____|_____|___|
|___/
Angular CLI: 10.0.0
Node: 12.16.0
OS: win32 x64
Angular:
...
Ivy Workspace:
Package Version
------------------------------------------------------
@angular-devkit/architect 0.1000.0
@angular-devkit/core 10.0.0
@angular-devkit/schematics 10.0.0
@schematics/angular 10.0.0
@schematics/update 0.1000.0
rxjs 6.5.5
which shows that it actually didn't fail but got Angular CLI installed.
In fact, when I run (with cd to C:/Users/tiago/Desktop/angular)
ng new my-app
The my-app is created

and can be served (with cd to my-app)
ng serve --open
As I can see the following page, this means the installation and setup was successful.

So, as per your case with -bash: ng: command not found
, this may mean NodeJS wasn't installed properly (I would reinstall it). If that doesn't solve, I've seen another solution to that problem before; simply follow the next steps
- Remove Node from your system
- Install NVM
- Install Node via NVM: nvm install stable
- Run
npm install -g @angular/cli