how to check all global npm modules installed on pc code example Example: how to view a list of installed npm packages npm list -g