1 ---
2 title: npm-unstar
3 section: 1
4 description: Remove an item from your favorite packages
5 github_repo: npm/cli
6 github_branch: latest
7 github_path: docs/lib/content/commands/npm-unstar.md
8 redirect_from:
9 - /cli-commands/npm-unstar
10 - /cli-commands/unstar
11 - /cli-documentation/cli-commands/npm-unstar
12 - /cli-documentation/cli-commands/unstar
13 - /cli-documentation/commands/npm-unstar
14 - /cli-documentation/commands/unstar
15 - /cli-documentation/npm-unstar
16 - /cli-documentation/unstar
17 - /cli-documentation/v11/cli-commands/npm-unstar
18 - /cli-documentation/v11/cli-commands/unstar
19 - /cli-documentation/v11/commands/npm-unstar
20 - /cli-documentation/v11/commands/unstar
21 - /cli-documentation/v11/npm-unstar
22 - /cli-documentation/v11/unstar
23 - /cli/cli-commands/npm-unstar
24 - /cli/cli-commands/unstar
25 - /cli/commands/npm-unstar
26 - /cli/commands/unstar
27 - /cli/npm-unstar
28 - /cli/unstar
29 - /cli/v11/cli-commands/npm-unstar
30 - /cli/v11/cli-commands/unstar
31 - /cli/v11/commands/unstar
32 - /cli/v11/npm-unstar
33 - /cli/v11/unstar
34 - /commands/npm-unstar
35 - /commands/unstar
36 ---
37
38 ### Synopsis
39
40 ```bash
41 npm unstar [<package-spec>...]
42 ```
43
44 Note: This command is unaware of workspaces.
45
46 ### Description
47
48 "Unstarring" a package is the opposite of [`npm star`](/cli/v11/commands/npm-star), it removes an item from your list of favorite packages.
49
50 ### More
51
52 There's also these extra commands to help you manage your favorite packages:
53
54 #### Star
55
56 You can "star" a package using [`npm star`](/cli/v11/commands/npm-star)
57
58 #### Listing stars
59
60 You can see all your starred packages using [`npm stars`](/cli/v11/commands/npm-stars)
61
62 ### Configuration
63
64 #### `registry`
65
66 - Default: "https://registry.npmjs.org/"
67 - Type: URL
68
69 The base URL of the npm registry.
70
71 #### `unicode`
72
73 - Default: false on windows, true on mac/unix systems with a unicode locale, as defined by the `LC_ALL`, `LC_CTYPE`, or `LANG` environment variables.
74 - Type: Boolean
75
76 When set to true, npm uses unicode characters in the tree output. When false, it uses ascii characters instead of unicode glyphs.
77
78 #### `otp`
79
80 - Default: null
81 - Type: null or String
82
83 This is a one-time password from a two-factor authenticator. It's needed when publishing or changing package permissions with `npm access`.
84
85 If not set, and a registry response fails with a challenge for a one-time password, npm will prompt on the command line for one.
86
87 ### See Also
88
89 - [npm star](/cli/v11/commands/npm-star)
90 - [npm stars](/cli/v11/commands/npm-stars)
91 - [npm view](/cli/v11/commands/npm-view)
92 - [npm whoami](/cli/v11/commands/npm-whoami)
93 - [npm adduser](/cli/v11/commands/npm-adduser)