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 /.

npm-deny-scripts.13.1 KB · 100 lines
.TH "NPM-DENY-SCRIPTS" "1" "June 2026" "NPM@11.17.0" "".SH "NAME"\fBnpm-deny-scripts\fR - Deny install scripts for specific dependencies.SS "Synopsis".P.RS 2.nfnpm deny-scripts <pkg> \[lB]<pkg> ...\[rB]npm deny-scripts --all.fi.RE.PNote: This command is unaware of workspaces..SS "Description".PThe companion command to npm help approve-scripts. Writes \fBfalse\fR entries into the \fBallowScripts\fR field of your project's \fBpackage.json\fR, recording that a dependency must not run install scripts even if a future version would otherwise be eligible..PIn the current release, install scripts still run by default, so \fBdeny-scripts\fR only affects how installs of denied packages are reported. A future release will block unreviewed install scripts and respect deny entries at install time..P.RS 2.nfnpm deny-scripts <pkg> \[lB]<pkg> ...\[rB]npm deny-scripts --all.fi.RE.P\fB<pkg>\fR matches every installed version of that package. Denies are always written name-only (\fB"pkg": false\fR), regardless of \fB--allow-scripts-pin\fR. Pinning a deny to a specific version would silently re-allow scripts for any other version of the same package, which defeats the purpose; the command picks the safer default for you..P\fB--all\fR denies every package with unreviewed install scripts..PIf a \fBtrue\fR (pinned or name-only) entry exists for a package and you then deny it, the existing allow entries are removed so the name-only deny is unambiguous..SS "Examples".P.RS 2.nf# Deny a specific package outrightnpm deny-scripts telemetry-pkg # Deny everything that has install scripts and isn't already approvednpm deny-scripts --all.fi.RE.SS "Configuration".SS "\fBall\fR".RS 0.IP \(bu 4Default: false.IP \(bu 4Type: Boolean.RE 0 .PShow or act on all packages, not just the ones your project directly depends on. For \fBnpm outdated\fR and \fBnpm ls\fR this lists every outdated or installed package. For \fBnpm approve-scripts\fR and \fBnpm deny-scripts\fR it selects every package with pending install scripts..SS "\fBallow-scripts-pending\fR".RS 0.IP \(bu 4Default: false.IP \(bu 4Type: Boolean.RE 0 .PList packages with install scripts that are not yet covered by the \fBallowScripts\fR policy, without modifying \fBpackage.json\fR. Only meaningful for \fBnpm approve-scripts\fR..SS "\fBallow-scripts-pin\fR".RS 0.IP \(bu 4Default: true.IP \(bu 4Type: Boolean.RE 0 .PWrite pinned (\fBpkg@version\fR) entries when approving install scripts. Set to \fBfalse\fR to write name-only entries that allow any version. Has no effect on \fBnpm deny-scripts\fR, which always writes name-only entries regardless of this setting..SS "\fBjson\fR".RS 0.IP \(bu 4Default: false.IP \(bu 4Type: Boolean.RE 0 .PWhether or not to output JSON data, rather than the normal output..RS 0.IP \(bu 4In \fBnpm pkg set\fR it enables parsing set values with JSON.parse() before saving them to your \fBpackage.json\fR..RE 0 .PNot supported by all npm commands..SS "See Also".RS 0.IP \(bu 4npm help approve-scripts.IP \(bu 4npm help install.IP \(bu 4\fBpackage.json\fR \fI\(la/configuring-npm/package-json\(ra\fR.RE 0