npm-unpublish.1 5.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187
  1. .TH "NPM\-UNPUBLISH" "1" "October 2021" "" ""
  2. .SH "NAME"
  3. \fBnpm-unpublish\fR \- Remove a package from the registry
  4. .SS Synopsis
  5. .P
  6. To learn more about how the npm registry treats unpublish, see our <a
  7. href="https://docs\.npmjs\.com/policies/unpublish" target="_blank"
  8. rel="noopener noreferrer"> unpublish policies</a>
  9. .SS Unpublishing a single version of a package
  10. .P
  11. .RS 2
  12. .nf
  13. npm unpublish [<@scope>/]<pkg>@<version>
  14. .fi
  15. .RE
  16. .SS Unpublishing an entire package
  17. .P
  18. .RS 2
  19. .nf
  20. npm unpublish [<@scope>/]<pkg> \-\-force
  21. .fi
  22. .RE
  23. .SS Warning
  24. .P
  25. Consider using the npm help \fBdeprecate\fP command instead,
  26. if your intent is to encourage users to upgrade, or if you no longer
  27. want to maintain a package\.
  28. .SS Description
  29. .P
  30. This removes a package version from the registry, deleting its entry and
  31. removing the tarball\.
  32. .P
  33. The npm registry will return an error if you are not npm help logged
  34. in\.
  35. .P
  36. If you do not specify a version or if you remove all of a package's
  37. versions then the registry will remove the root package entry entirely\.
  38. .P
  39. Even if you unpublish a package version, that specific name and version
  40. combination can never be reused\. In order to publish the package again,
  41. you must use a new version number\. If you unpublish the entire package,
  42. you may not publish any new versions of that package until 24 hours have
  43. passed\.
  44. .SS Configuration
  45. <!\-\- AUTOGENERATED CONFIG DESCRIPTIONS START \-\->
  46. <!\-\- automatically generated, do not edit manually \-\->
  47. <!\-\- see lib/utils/config/definitions\.js \-\->
  48. .SS \fBdry\-run\fP
  49. .RS 0
  50. .IP \(bu 2
  51. Default: false
  52. .IP \(bu 2
  53. Type: Boolean
  54. .RE
  55. .P
  56. Indicates that you don't want npm to make any changes and that it should
  57. only report what it would have done\. This can be passed into any of the
  58. commands that modify your local installation, eg, \fBinstall\fP, \fBupdate\fP,
  59. \fBdedupe\fP, \fBuninstall\fP, as well as \fBpack\fP and \fBpublish\fP\|\.
  60. .P
  61. Note: This is NOT honored by other network related commands, eg \fBdist\-tags\fP,
  62. \fBowner\fP, etc\.
  63. <!\-\- automatically generated, do not edit manually \-\->
  64. <!\-\- see lib/utils/config/definitions\.js \-\->
  65. .SS \fBforce\fP
  66. .RS 0
  67. .IP \(bu 2
  68. Default: false
  69. .IP \(bu 2
  70. Type: Boolean
  71. .RE
  72. .P
  73. Removes various protections against unfortunate side effects, common
  74. mistakes, unnecessary performance degradation, and malicious input\.
  75. .RS 0
  76. .IP \(bu 2
  77. Allow clobbering non\-npm files in global installs\.
  78. .IP \(bu 2
  79. Allow the \fBnpm version\fP command to work on an unclean git repository\.
  80. .IP \(bu 2
  81. Allow deleting the cache folder with \fBnpm cache clean\fP\|\.
  82. .IP \(bu 2
  83. Allow installing packages that have an \fBengines\fP declaration requiring a
  84. different version of npm\.
  85. .IP \(bu 2
  86. Allow installing packages that have an \fBengines\fP declaration requiring a
  87. different version of \fBnode\fP, even if \fB\-\-engine\-strict\fP is enabled\.
  88. .IP \(bu 2
  89. Allow \fBnpm audit fix\fP to install modules outside your stated dependency
  90. range (including SemVer\-major changes)\.
  91. .IP \(bu 2
  92. Allow unpublishing all versions of a published package\.
  93. .IP \(bu 2
  94. Allow conflicting peerDependencies to be installed in the root project\.
  95. .IP \(bu 2
  96. Implicitly set \fB\-\-yes\fP during \fBnpm init\fP\|\.
  97. .IP \(bu 2
  98. Allow clobbering existing values in \fBnpm pkg\fP
  99. .RE
  100. .P
  101. If you don't have a clear idea of what you want to do, it is strongly
  102. recommended that you do not use this option!
  103. <!\-\- automatically generated, do not edit manually \-\->
  104. <!\-\- see lib/utils/config/definitions\.js \-\->
  105. .SS \fBworkspace\fP
  106. .RS 0
  107. .IP \(bu 2
  108. Default:
  109. .IP \(bu 2
  110. Type: String (can be set multiple times)
  111. .RE
  112. .P
  113. Enable running a command in the context of the configured workspaces of the
  114. current project while filtering by running only the workspaces defined by
  115. this configuration option\.
  116. .P
  117. Valid values for the \fBworkspace\fP config are either:
  118. .RS 0
  119. .IP \(bu 2
  120. Workspace names
  121. .IP \(bu 2
  122. Path to a workspace directory
  123. .IP \(bu 2
  124. Path to a parent workspace directory (will result in selecting all
  125. workspaces within that folder)
  126. .RE
  127. .P
  128. When set for the \fBnpm init\fP command, this may be set to the folder of a
  129. workspace which does not yet exist, to create the folder and set it up as a
  130. brand new workspace within the project\.
  131. .P
  132. This value is not exported to the environment for child processes\.
  133. <!\-\- automatically generated, do not edit manually \-\->
  134. <!\-\- see lib/utils/config/definitions\.js \-\->
  135. .SS \fBworkspaces\fP
  136. .RS 0
  137. .IP \(bu 2
  138. Default: null
  139. .IP \(bu 2
  140. Type: null or Boolean
  141. .RE
  142. .P
  143. Set to true to run the command in the context of \fBall\fR configured
  144. workspaces\.
  145. .P
  146. Explicitly setting this to false will cause commands like \fBinstall\fP to
  147. ignore workspaces altogether\. When not set explicitly:
  148. .RS 0
  149. .IP \(bu 2
  150. Commands that operate on the \fBnode_modules\fP tree (install, update, etc\.)
  151. will link workspaces into the \fBnode_modules\fP folder\. \- Commands that do
  152. other things (test, exec, publish, etc\.) will operate on the root project,
  153. \fIunless\fR one or more workspaces are specified in the \fBworkspace\fP config\.
  154. .RE
  155. .P
  156. This value is not exported to the environment for child processes\.
  157. <!\-\- automatically generated, do not edit manually \-\->
  158. <!\-\- see lib/utils/config/definitions\.js \-\->
  159. <!\-\- AUTOGENERATED CONFIG DESCRIPTIONS END \-\->
  160. .SS See Also
  161. .RS 0
  162. .IP \(bu 2
  163. npm help deprecate
  164. .IP \(bu 2
  165. npm help publish
  166. .IP \(bu 2
  167. npm help registry
  168. .IP \(bu 2
  169. npm help adduser
  170. .IP \(bu 2
  171. npm help owner
  172. .IP \(bu 2
  173. npm help login
  174. .RE