File Explorer

/var/lang/lib/node_modules/npm/man/man1

This explorer reads the filesystem of the server it runs on, so /workspace/user isn't present here. Browsing and the terminal still work against this server's own disk from /.

0 dirs
70 files
npm-unpublish.14.8 KB · 138 lines
.TH "NPM-UNPUBLISH" "1" "February 2026" "NPM@11.11.0" "".SH "NAME"\fBnpm-unpublish\fR - Remove a package from the registry.SS "Synopsis".P.RS 2.nfnpm unpublish \[lB]<package-spec>\[rB].fi.RE.PTo learn more about how the npm registry treats unpublish, see our \fBunpublish policies\fR \fI\(lahttps://docs.npmjs.com/policies/unpublish\(ra\fR..SS "Warning".PConsider using the npm help deprecate command instead, if your intent is to encourage users to upgrade, or if you no longer want to maintain a package..SS "Description".PThis removes a package version from the registry, deleting its entry and removing the tarball..PThe npm registry will return an error if you are not npm help "logged in"..PIf you do not specify a package name at all, the name and version to be unpublished will be pulled from the project in the current directory..PIf you specify a package name but do not specify a version or if you remove all of a package's versions then the registry will remove the root package entry entirely..PEven if you unpublish a package version, that specific name and version combination can never be reused. In order to publish the package again, you must use a new version number. If you unpublish the entire package, you may not publish any new versions of that package until 24 hours have passed..SS "Configuration".SS "\fBdry-run\fR".RS 0.IP \(bu 4Default: false.IP \(bu 4Type: Boolean.RE 0 .PIndicates that you don't want npm to make any changes and that it should only report what it would have done. This can be passed into any of the commands that modify your local installation, eg, \fBinstall\fR, \fBupdate\fR, \fBdedupe\fR, \fBuninstall\fR, as well as \fBpack\fR and \fBpublish\fR..PNote: This is NOT honored by other network related commands, eg \fBdist-tags\fR, \fBowner\fR, etc..SS "\fBforce\fR".RS 0.IP \(bu 4Default: false.IP \(bu 4Type: Boolean.RE 0 .PRemoves various protections against unfortunate side effects, common mistakes, unnecessary performance degradation, and malicious input..RS 0.IP \(bu 4Allow clobbering non-npm files in global installs..IP \(bu 4Allow the \fBnpm version\fR command to work on an unclean git repository..IP \(bu 4Allow deleting the cache folder with \fBnpm cache clean\fR..IP \(bu 4Allow installing packages that have an \fBengines\fR declaration requiring a different version of npm..IP \(bu 4Allow installing packages that have an \fBengines\fR declaration requiring a different version of \fBnode\fR, even if \fB--engine-strict\fR is enabled..IP \(bu 4Allow \fBnpm audit fix\fR to install modules outside your stated dependency range (including SemVer-major changes)..IP \(bu 4Allow unpublishing all versions of a published package..IP \(bu 4Allow conflicting peerDependencies to be installed in the root project..IP \(bu 4Implicitly set \fB--yes\fR during \fBnpm init\fR..IP \(bu 4Allow clobbering existing values in \fBnpm pkg\fR.IP \(bu 4Allow unpublishing of entire packages (not just a single version)..RE 0 .PIf you don't have a clear idea of what you want to do, it is strongly recommended that you do not use this option!.SS "\fBworkspace\fR".RS 0.IP \(bu 4Default:.IP \(bu 4Type: String (can be set multiple times).RE 0 .PEnable running a command in the context of the configured workspaces of the current project while filtering by running only the workspaces defined by this configuration option..PValid values for the \fBworkspace\fR config are either:.RS 0.IP \(bu 4Workspace names.IP \(bu 4Path to a workspace directory.IP \(bu 4Path to a parent workspace directory (will result in selecting all workspaces within that folder).RE 0 .PWhen set for the \fBnpm init\fR command, this may be set to the folder of a workspace which does not yet exist, to create the folder and set it up as a brand new workspace within the project..PThis value is not exported to the environment for child processes..SS "\fBworkspaces\fR".RS 0.IP \(bu 4Default: null.IP \(bu 4Type: null or Boolean.RE 0 .PSet to true to run the command in the context of \fBall\fR configured workspaces..PExplicitly setting this to false will cause commands like \fBinstall\fR to ignore workspaces altogether. When not set explicitly:.RS 0.IP \(bu 4Commands that operate on the \fBnode_modules\fR tree (install, update, etc.) will link workspaces into the \fBnode_modules\fR folder. - Commands that do other things (test, exec, publish, etc.) will operate on the root project, \fIunless\fR one or more workspaces are specified in the \fBworkspace\fR config..RE 0 .PThis value is not exported to the environment for child processes..SS "See Also".RS 0.IP \(bu 4npm help "package spec".IP \(bu 4npm help deprecate.IP \(bu 4npm help publish.IP \(bu 4npm help registry.IP \(bu 4npm help adduser.IP \(bu 4npm help owner.IP \(bu 4npm help login.RE 0