npm state: installed -> installed_pkgs, to avoid shadowing func of same name