npm list global packages code example
Example 1: npm list global packages
npm list -g --depth 0
Example 2: npm global list
npm list -g --depth=0
Example 3: how to view a list of installed npm packages
npm list -g
Example 4: npm list global packages
npm list -g --depth 0
Example 5: npm list
npm list Lists the installed versions of all dependencies in this software
npm list -g --depth 0 Lists the installed versions of all globally installed packages
npm view Lists the latest versions of all dependencies in this software
npm outdated Lists only the dependencies in this software which are outdated
npm ls - list packages
Example 6: how to find global npm packages are installed
npm root -g