npm show global packages installed code example Example: npm list global packages npm list -g --depth 0