Run the below command to get the list of globally installed npm packages
npm list -g --depth=0
Output will be like this:
├── @angular/cli@14.1.0
├── cordova-res@0.15.4
├── corepack@0.12.1
├── depcheck@1.4.3
├── native-run@1.6.0
├── npm-check-updates@16.0.5
├── npm@8.15.1
└── source-map-explorer@2.5.2