npm star: Usage & Output
Mark packages as favorites on your registry account.
npm star records a package as a favorite under your registry account; npm unstar removes it, and npm stars lists what you (or another user) have starred.
What it does
star and unstar toggle a favorite flag on your account for the named package - purely a personal bookmark, with no effect on installs or publishing. npm stars [user] lists the starred packages for you or a given username.
Common usage
Terminal
npm star lodash # favorite a package
npm unstar lodash # remove the favorite
npm stars # list your starred packagesCommon error: star requires auth
npm star fails with ENEEDAUTH because starring is tied to a logged-in account. It is an interactive convenience, not a CI operation - authenticate first if you really need it in a script, but it almost never belongs in a pipeline.
Terminal
npm whoami # must be logged in to starRelated guides
npm whoami: Usage & Common CI Errorsnpm whoami prints the username for your current registry token - the fastest auth smoke test in release CI. U…
npm view: Usage, Options & Outputnpm view (npm info) queries registry metadata - versions, dist-tags, dependencies - for any package. Usage, f…
npm search: Usage, Options & Common Errorsnpm search finds packages in the registry by keyword. Usage, JSON output, and why it can fail or hang against…