how to view all the dependencies installed npm code example Example: npm list global packages npm list -g --depth 0