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