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
│ │ │ ├─┬ concat-stream@1.6.0
│ │ │ │ ├── inherits@2.0.3 deduped
│ │ │ │ ├── readable-stream@2.3.2 deduped
│ │ │ │ └── typedarray@0.0.6
│ │ │ ├─┬ duplexify@3.5.0
│ │ │ │ ├─┬ end-of-stream@1.0.0
│ │ │ │ │ └─┬ once@1.3.3
│ │ │ │ │ └── wrappy@1.0.2 deduped
│ │ │ │ ├── inherits@2.0.3 deduped
│ │ │ │ ├── readable-stream@2.3.2 deduped
│ │ │ │ └── stream-shift@1.0.0
│ │ │ ├─┬ end-of-stream@1.4.0
│ │ │ │ └── once@1.4.0 deduped
│ │ │ ├─┬ flush-write-stream@1.0.2
│ │ │ │ ├── inherits@2.0.3 deduped
│ │ │ │ └── readable-stream@2.3.2 deduped
│ │ │ ├─┬ from2@2.3.0
│ │ │ │ ├── inherits@2.0.3 deduped
│ │ │ │ └── readable-stream@2.3.2 deduped
│ │ │ ├─┬ parallel-transform@1.1.0
│ │ │ │ ├── cyclist@0.2.2
│ │ │ │ ├── inherits@2.0.3 deduped
│ │ │ │ └── readable-stream@2.3.2 deduped
│ │ │ ├─┬ pump@1.0.2
│ │ │ │ ├── end-of-stream@1.4.0 deduped
│ │ │ │ └── once@1.4.0 deduped
│ │ │ ├─┬ pumpify@1.3.5
│ │ │ │ ├── duplexify@3.5.0 deduped
│ │ │ │ ├── inherits@2.0.3 deduped
│ │ │ │ └── pump@1.0.2 deduped
│ │ │ ├─┬ stream-each@1.2.0
│ │ │ │ ├── end-of-stream@1.4.0 deduped
│ │ │ │ └── stream-shift@1.0.0
│ │ │ └─┬ through2@2.0.3
│ │ │ ├── readable-stream@2.3.2 deduped
│ │ │ └── xtend@4.0.1
│ │ ├─┬ mkdirp@0.5.1
│ │ │ └── minimist@0.0.8
│ │ ├─┬ move-concurrently@1.0.1
│ │ │ ├── aproba@1.1.2 deduped
│ │ │ ├─┬ copy-concurrently@1.0.3
│ │ │ │ ├── aproba@1.1.2 deduped
│ │ │ │ ├── fs-write-stream-atomic@1.0.10 deduped
│ │ │ │ ├── iferr@0.1.5 deduped
│ │ │ │ ├── mkdirp@0.5.1 deduped
│ │ │ │ ├── rimraf@2.6.1 deduped
│ │ │ │ └── run-queue@1.0.3 deduped
│ │ │ ├── fs-write-stream-atomic@1.0.10 deduped
│ │ │ ├── mkdirp@0.5.1 deduped
│ │ │ ├── rimraf@2.6.1 deduped
│ │ │ └─┬ run-queue@1.0.3
│ │ │ └── aproba@1.1.2 deduped
│ │ ├─┬ node-gyp@3.6.2
│ │ │ ├── fstream@1.0.11 deduped
│ │ │ ├── glob@7.1.2 deduped
│ │ │ ├ ── graceful-fs@4.1.11 deduped
│ │ │ ├─┬ minimatch@3.0.4
│ │ │ │ └─┬ brace-expansion@1.1.8
│ │ │ │ ├── balanced-match@1.0.0
│ │ │ │ └── concat-map@0.0.1
│ │ │ ├── mkdirp@0.5.1 deduped
│ │ │ ├─┬ nopt@3.0.6
│ │ │ │ └── abbrev@1.1.0 deduped
│ │ │ ├── npmlog@4.1.2 deduped
│ │ │ ├── osenv@0.1.4 deduped
│ │ │ ├── request@2.81.0 deduped
│ │ │ ├── rimraf@2.6.1 deduped
│ │ │ ├── semver@5.3.0 deduped
│ │ │ ├── tar@2.2.1 deduped
│ │ │ └── which@1.2.14 deduped
│ │ ├─┬ nopt@4.0.1
│ │ │ ├── abbrev@1.1.0 deduped
│ │ │ └── osenv@0.1.4 deduped
│ │ ├─┬ normalize-package-data@2.4.0
│ │ │ ├── hosted-git-info@2.5.0 deduped
│ │ │ ├─┬ is-builtin-module@1.0.0
│ │ │ │ └── builtin-modules@1.1.1
│ │ │ ├── semver@5.3.0 deduped
│ │ │ └── validate-npm-package-license@3.0.1 deduped
│ │ ├── npm-cache-filename@1.0.2
│ │ ├─┬ npm-install-checks@3.0.0
│ │ │ └── semver@5.3.0 deduped
│ │ ├─┬ npm-package-arg@5.1.2
│ │ │ ├── hosted-git-info@2.5.0 deduped
│ │ │ ├── osenv@0.1.4 deduped
│ │ │ ├── semver@5.3.0 deduped
│ │ │ └── validate-npm-package-name@3.0.0 deduped
│ │ ├─┬ npm-registry-client@8.4.0
│ │ │ ├─┬ concat-stream@1.6.0
│ │ │ │ ├── inherits@2.0.3 deduped
│ │ │ │ ├── readable-stream@2.3.2 deduped
│ │ │ │ └── typedarray@0.0.6
│ │ │ ├── graceful-fs@4.1.11 deduped
│ │ │ ├── normalize-package-data@2.4.0 deduped
│ │ │ ├── npm-package-arg@5.1.2 deduped
│ │ │ ├── npmlog@4.1.2 deduped
│ │ │ ├── once@1.4.0 deduped
│ │ │ ├── request@2.81.0 deduped
│ │ │ ├── retry@0.10.1 deduped
│ │ │ ├── semver@5.3.0 deduped
│ │ │ ├── slide@1.1.6 deduped
│ │ │ └── ssri@4.1.6 deduped
│ │ ├── npm-user-validate@1.0.0
│ │ ├─┬ npmlog@4.1.2
│ │ │ ├─┬ are-we-there-yet@1.1.4
│ │ │ │ ├── delegates@1.0.0
│ │ │ │ └── readable-stream@2.3.2 deduped
│ │ │ ├── console-control-strings@1.1.0
│ │ │ ├─┬ gauge@2.7.4
│ │ │ │ ├── aproba@1.1.2 deduped
│ │ │ │ ├── console-control-strings@1.1.0 deduped
│ │ │ │ ├── has-unicode@2.0.1 deduped
│ │ │ │ ├── object-assign@4.1.1
│ │ │ │ ├── signal-exit@3.0.2
│ │ │ │ ├─┬ string-width@1.0.2
│ │ │ │ │ ├── code-point-at@1.1.0
│ │ │ │ │ ├─┬ is-fullwidth-code-point@1.0.0
│ │ │ │ │ │ └── number-is-nan@1.0.1
│ │ │ │ │ └── strip-ansi@3.0.1 deduped
│ │ │ │ ├─┬ strip-ansi@3.0.1
│ │ │ │ │ └── ansi-regex@2.1.1
│ │ │ │ └─┬ wide-align@1.1.2
│ │ │ │ └── string-width@1.0.2 deduped
│ │ │ └── set-blocking@2.0.0
│ │ ├─┬ once@1.4.0
│ │ │ └── wrappy@1.0.2 deduped
│ │ ├── opener@1.4.3
│ │ ├─┬ osenv@0.1.4
│ │ │ ├── os-homedir@1.0.2
│ │ │ └── os-tmpdir@1.0.2
│ │ ├─┬ pacote@2.7.38
│ │ │ ├── bluebird@3.5.0 deduped
│ │ │ ├── cacache@9.2.9 deduped
│ │ │ ├── glob@7.1.2 deduped
│ │ │ ├── lru-cache@4.1.1 deduped
│ │ │ ├─┬ make-fetch-happen@2.4.13
│ │ │ │ ├─┬ agentkeepalive@3.3.0
│ │ │ │ │ └─┬ humanize-ms@1.2.1
│ │ │ │ │ └── ms@2.0.0
│ │ │ │ ├── cacache@9.2.9 deduped
│ │ │ │ ├── http-cache-semantics@3.7.3
│ │ │ │ ├─┬ http-proxy-agent@2.0.0
│ │ │ │ │ ├─┬ agent-base@4.1.0
│ │ │ │ │ │ └─┬ es6-promisify@5.0.0