npm
update
//update to latest
npm install npm@latest -g
//Listing globally installed NPM packages and version
npm list -g --depth=0
//find outdated packages
npm outdated
//use npm-check
npm-check
January 2020:
david@macs:~/sites/til(master⚡) » npm list -g
/Users/david/.nvm/versions/node/v10.16.3/lib
├─┬ gitbook-cli@2.3.2
│ ├── bash-color@0.0.4
│ ├── commander@2.11.0
│ ├─┬ fs-extra@3.0.1
│ │ ├── graceful-fs@4.2.3
│ │ ├─┬ jsonfile@3.0.1
│ │ │ └── graceful-fs@4.2.3 deduped
│ │ └── universalify@0.1.2
│ ├── lodash@4.17.4
│ ├─┬ npm@5.1.0
│ │ ├── abbrev@1.1.0
│ │ ├── ansi-regex@3.0.0
│ │ ├── ansicolors@0.3.2
│ │ ├── ansistyles@0.1.3
│ │ ├── aproba@1.1.2
│ │ ├── archy@1.0.0
│ │ ├── bluebird@3.5.0
│ │ ├─┬ cacache@9.2.9
│ │ │ ├── bluebird@3.5.0 deduped
│ │ │ ├── chownr@1.0.1 deduped
│ │ │ ├── glob@7.1.2 deduped
│ │ │ ├── graceful-fs@4.1.11 deduped
│ │ │ ├─┬ lru-cache@4.1.1
│ │ │ │ ├── pseudomap@1.0.2
│ │ │ │ └── yallist@2.1.2
│ │ │ ├── mississippi@1.3.0 deduped
│ │ │ ├── mkdirp@0.5.1 deduped
│ │ │ ├── move-concurrently@1.0.1 deduped
│ │ │ ├── promise-inflight@1.0.1 deduped
│ │ │ ├── rimraf@2.6.1 deduped
│ │ │ ├── ssri@4.1.6 deduped
│ │ │ ├── unique-filename@1.1.0 deduped
│ │ │ └── y18n@3.2.1
│ │ ├── call-limit@1.1.0
│ │ ├── chownr@1.0.1
│ │ ├─┬ cmd-shim@2.0.2
│ │ │ ├── graceful-fs@4.1.11 deduped
│ │ │ └── mkdirp@0.5.1 deduped
│ │ ├─┬ columnify@1.5.4
│ │ │ ├─┬ strip-ansi@3.0.1
│ │ │ │ └── ansi-regex@2.1.1
│ │ │ └─┬ wcwidth@1.0.1
│ │ │ └─┬ defaults@1.0.3
│ │ │ └── clone@1.0.2
│ │ ├─┬ config-chain@1.1.11
│ │ │ ├── ini@1.3.4 deduped
│ │ │ └── proto-list@1.2.4
│ │ ├── debuglog@1.0.1
│ │ ├── detect-indent@5.0.0
│ │ ├─┬ dezalgo@1.0.3
│ │ │ ├── asap@2.0.5
│ │ │ └── wrappy@1.0.2 deduped
│ │ ├── editor@1.0.0
│ │ ├─┬ fs-vacuum@1.2.10
│ │ │ ├── graceful-fs@4.1.11 deduped
│ │ │ ├── path-is-inside@1.0.2 deduped
│ │ │ └── rimraf@2.6.1 deduped
│ │ ├─┬ fs-write-stream-atomic@1.0.10
│ │ │ ├── graceful-fs@4.1.11 deduped
│ │ │ ├── iferr@0.1.5 deduped
│ │ │ ├── imurmurhash@0.1.4 deduped
│ │ │ └── readable-stream@2.3.2 deduped
│ │ ├─┬ fstream@1.0.11
│ │ │ ├── graceful-fs@4.1.11 deduped
│ │ │ ├── inherits@2.0.3 deduped
│ │ │ ├── mkdirp@0.5.1 deduped
│ │ │ └── rimraf@2.6.1 deduped
│ │ ├─┬ fstream-npm@1.2.1
│ │ │ ├─┬ fstream-ignore@1.0.5
│ │ │ │ ├── fstream@1.0.11 deduped
│ │ │ │ ├── inherits@2.0.3 deduped
│ │ │ │ └─┬ minimatch@3.0.4
│ │ │ │ └─┬ brace-expansion@1.1.8
│ │ │ │ ├── balanced-match@1.0.0
│ │ │ │ └── concat-map@0.0.1
│ │ │ └── inherits@2.0.3 deduped
│ │ ├─┬ glob@7.1.2
│ │ │ ├── fs.realpath@1.0.0
│ │ │ ├── inflight@1.0.6 deduped
│ │ │ ├── inherits@2.0.3 deduped
│ │ │ ├─┬ minimatch@3.0.4
│ │ │ │ └─┬ brace-expansion@1.1.8
│ │ │ │ ├── balanced-match@1.0.0
│ │ │ │ └── concat-map@0.0.1
│ │ │ ├── once@1.4.0 deduped
│ │ │ └── path-is-absolute@1.0.1
│ │ ├── graceful-fs@4.1.11
│ │ ├── has-unicode@2.0.1
│ │ ├── hosted-git-info@2.5.0
│ │ ├── iferr@0.1.5
│ │ ├── imurmurhash@0.1.4
│ │ ├─┬ inflight@1.0.6
│ │ │ ├── once@1.4.0 deduped
│ │ │ └── wrappy@1.0.2 deduped
│ │ ├── inherits@2.0.3
│ │ ├─ ─ ini@1.3.4
│ │ ├─┬ init-package-json@1.10.1
│ │ │ ├── glob@7.1.2 deduped
│ │ │ ├── npm-package-arg@5.1.2 deduped
│ │ │ ├─┬ promzard@0.3.0
│ │ │ │ └── read@1.0.7 deduped
│ │ │ ├── read@1.0.7 deduped
│ │ │ ├── read-package-json@2.0.9 deduped
│ │ │ ├── semver@5.3.0 deduped
│ │ │ ├── validate-npm-package-license@3.0.1 deduped
│ │ │ └── validate-npm-package-name@3.0.0 deduped
│ │ ├─┬ JSONStream@1.3.1
│ │ │ ├── jsonparse@1.3.1
│ │ │ └── through@2.3.8
│ │ ├── lazy-property@1.0.0
│ │ ├── lockfile@1.0.3
│ │ ├── lodash._baseindexof@3.1.0
│ │ ├─┬ lodash._baseuniq@4.6.0
│ │ │ ├── lodash._createset@4.0.3
│ │ │ └── lodash._root@3.0.1
│ │ ├── lodash._bindcallback@3.0.1
│ │ ├── lodash._cacheindexof@3.0.2
│ │ ├─┬ lodash._createcache@3.1.2
│ │ │ └── lodash._getnative@3.9.1 deduped
│ │ ├── lodash._getnative@3.9.1
│ │ ├── lodash.clonedeep@4.5.0
│ │ ├── lodash.restparam@3.6.1
│ │ ├── lodash.union@4.6.0
│ │ ├── lodash.uniq@4.5.0
│ │ ├── lodash.without@4.4.0
│ │ ├─┬ lru-cache@4.1.1
│ │ │ ├── pseudomap@1.0.2
│ │ │ └── yallist@2.1.2
│ │ ├─┬ mississippi@1.3.0