Npm package depth

Is there a way to get the depth of a package, so that I can run npm update --depth N, to update a particular transitive dependency?