take a look at installed npm package global code example Example: how to find global npm packages are installed npm root -g