notes

npm

List versions of globally installed npm packages

Run this command:

npm list -g --depth=0

The output will look something like this:

/usr/lib
├── @angular/[email protected]
├── [email protected]
└── [email protected]

Update to latest version of globally installed npm package

Run the same command used to install it:

npm install -g @angular/cli