how to check installed libraries in npm code example Example: npm list global packages npm list -g --depth 0