2025-03-14 21:59:59 -06:00
|
|
|
# npm unstar
|
|
|
|
|
|
|
|
|
|
> Remove the favorite/star mark from a package.
|
2025-09-14 18:48:49 -06:00
|
|
|
> More information: <https://docs.npmjs.com/cli/npm-unstar>.
|
2025-03-14 21:59:59 -06:00
|
|
|
|
|
|
|
|
- Unstar a public package from the default registry:
|
|
|
|
|
|
|
|
|
|
`npm unstar {{package_name}}`
|
|
|
|
|
|
|
|
|
|
- Unstar a package within a specific scope:
|
|
|
|
|
|
|
|
|
|
`npm unstar @{{scope}}/{{package_name}}`
|
|
|
|
|
|
|
|
|
|
- Unstar a package from a specific registry:
|
|
|
|
|
|
2025-07-24 22:27:13 -06:00
|
|
|
`npm unstar {{package_name}} --registry {{registry_url}}`
|
2025-03-14 21:59:59 -06:00
|
|
|
|
|
|
|
|
- Unstar a private package that requires authentication:
|
|
|
|
|
|
2025-07-24 22:27:13 -06:00
|
|
|
`npm unstar {{package_name}} --auth-type {{legacy|oauth|web|saml}}`
|
2025-03-14 21:59:59 -06:00
|
|
|
|
|
|
|
|
- Unstar a package by providing an OTP for two-factor authentication:
|
|
|
|
|
|
2025-07-24 22:27:13 -06:00
|
|
|
`npm unstar {{package_name}} --otp {{otp}}`
|
2025-03-14 21:59:59 -06:00
|
|
|
|
|
|
|
|
- Unstar a package with a specific logging level:
|
|
|
|
|
|
2025-07-24 22:27:13 -06:00
|
|
|
`npm unstar {{package_name}} --loglevel {{silent|error|warn|notice|http|timing|info|verbose|silly}}`
|