how to check what global dependencies that are installed npm code example Example: npm list global packages npm list -g --depth 0