NPM: check dependencies recursively