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-root.11.2 KB · 57 lines
.TH "NPM-ROOT" "1" "February 2026" "NPM@11.11.0" "".SH "NAME"\fBnpm-root\fR - Display npm root.SS "Synopsis".P.RS 2.nfnpm root.fi.RE.PNote: This command is unaware of workspaces..SS "Description".PPrint the effective \fBnode_modules\fR folder to standard out..PUseful for using npm in shell scripts that do things with the \fBnode_modules\fR folder. For example:.P.RS 2.nf#!/bin/bashglobal_node_modules="$(npm root --global)"echo "Global packages installed in: ${global_node_modules}".fi.RE.SS "Configuration".SS "\fBglobal\fR".RS 0.IP \(bu 4Default: false.IP \(bu 4Type: Boolean.RE 0 .POperates in "global" mode, so that packages are installed into the \fBprefix\fR folder instead of the current working directory. See npm help folders for more on the differences in behavior..RS 0.IP \(bu 4packages are installed into the \fB{prefix}/lib/node_modules\fR folder, instead of the current working directory..IP \(bu 4bin files are linked to \fB{prefix}/bin\fR.IP \(bu 4man pages are linked to \fB{prefix}/share/man\fR.RE 0 .SS "See Also".RS 0.IP \(bu 4npm help prefix.IP \(bu 4npm help folders.IP \(bu 4npm help config.IP \(bu 4npm help npmrc.RE 0