npm find installed package in project code example Example: npm list global packages npm list -g --depth 0