Get the globally installed packages for any nvm-selectable version.
npm install nvm-global-installs
const nvmGlobalInstalls = require("nvm-global-installs");
nvmGlobalInstalls("v13.5.0");
//=> { 'v13.5.0': { npm: '6.13.4', yarn: '1.21.1' } }
Type: string
The version to get the globally installed packages for.
$ ngi
\ Traversing dependencies
├─ v0.10.48
│ └─ npm
├─ v12.14.0
│ ├─ active-win
│ ├─ npm
│ ├─ windows-build-tools
│ └─ yarn
└─ v13.5.0
├─ ngi
├─ npm
└─ yarn