2025-04-10 14:36:22 -07:00
|
|
|
.TH "NPM-EXPLORE" "1" "April 2025" "NPM@11.3.0" ""
|
2011-11-26 09:21:03 -08:00
|
|
|
.SH "NAME"
|
2022-12-06 22:18:33 -05:00
|
|
|
\fBnpm-explore\fR - Browse an installed package
|
|
|
|
.SS "Synopsis"
|
2014-09-24 14:41:07 -07:00
|
|
|
.P
|
|
|
|
.RS 2
|
2014-11-04 15:08:12 -08:00
|
|
|
.nf
|
2022-12-06 22:18:33 -05:00
|
|
|
npm explore <pkg> \[lB] -- <command>\[rB]
|
2014-11-04 15:08:12 -08:00
|
|
|
.fi
|
2014-09-24 14:41:07 -07:00
|
|
|
.RE
|
2021-03-23 14:58:11 -04:00
|
|
|
.P
|
2022-12-06 22:18:33 -05:00
|
|
|
Note: This command is unaware of workspaces.
|
|
|
|
.SS "Description"
|
2014-09-24 14:41:07 -07:00
|
|
|
.P
|
2022-12-06 22:18:33 -05:00
|
|
|
Spawn a subshell in the directory of the installed package specified.
|
2011-11-26 09:21:03 -08:00
|
|
|
.P
|
2022-12-06 22:18:33 -05:00
|
|
|
If a command is specified, then it is run in the subshell, which then immediately terminates.
|
2011-11-26 09:21:03 -08:00
|
|
|
.P
|
2022-12-06 22:18:33 -05:00
|
|
|
This is particularly handy in the case of git submodules in the \fBnode_modules\fR folder:
|
2014-09-24 14:41:07 -07:00
|
|
|
.P
|
|
|
|
.RS 2
|
2014-11-04 15:08:12 -08:00
|
|
|
.nf
|
2022-12-06 22:18:33 -05:00
|
|
|
npm explore some-dependency -- git pull origin master
|
2014-11-04 15:08:12 -08:00
|
|
|
.fi
|
2014-09-24 14:41:07 -07:00
|
|
|
.RE
|
2011-11-26 09:21:03 -08:00
|
|
|
.P
|
2022-12-06 22:18:33 -05:00
|
|
|
Note that the package is \fInot\fR automatically rebuilt afterwards, so be sure to use \fBnpm rebuild <pkg>\fR if you make any changes.
|
|
|
|
.SS "Configuration"
|
|
|
|
.SS "\fBshell\fR"
|
2014-09-24 14:41:07 -07:00
|
|
|
.RS 0
|
2022-12-06 22:18:33 -05:00
|
|
|
.IP \(bu 4
|
|
|
|
Default: SHELL environment variable, or "bash" on Posix, or "cmd.exe" on Windows
|
|
|
|
.IP \(bu 4
|
2021-05-20 15:54:50 -04:00
|
|
|
Type: String
|
2022-12-06 22:18:33 -05:00
|
|
|
.RE 0
|
2014-09-24 14:41:07 -07:00
|
|
|
|
2011-11-26 09:21:03 -08:00
|
|
|
.P
|
2022-12-06 22:18:33 -05:00
|
|
|
The shell to run for the \fBnpm explore\fR command.
|
|
|
|
.SS "See Also"
|
2014-09-24 14:41:07 -07:00
|
|
|
.RS 0
|
2022-12-06 22:18:33 -05:00
|
|
|
.IP \(bu 4
|
2019-11-05 14:55:08 -05:00
|
|
|
npm help folders
|
2022-12-06 22:18:33 -05:00
|
|
|
.IP \(bu 4
|
2019-11-18 21:01:39 +02:00
|
|
|
npm help edit
|
2022-12-06 22:18:33 -05:00
|
|
|
.IP \(bu 4
|
2019-11-18 21:01:39 +02:00
|
|
|
npm help rebuild
|
2022-12-06 22:18:33 -05:00
|
|
|
.IP \(bu 4
|
2019-11-18 21:01:39 +02:00
|
|
|
npm help install
|
2022-12-06 22:18:33 -05:00
|
|
|
.RE 0
|