pub fn package_dir(from_dir: &Path, name: &str) -> Result<PathBuf>Expand description
Find an installed package by walking node_modules/<name> upward from from_dir
(Node’s module-resolution order), returning the first directory that exists.
name may be scoped (@scope/pkg). Errors when the package is installed nowhere
on the way up — run npm install / web-modules ci first.