1section: cli−commands title: npm−explore description: Browse an
2NPM-EXPLORE(1) NPM-EXPLORE(1)
3
4
5
6installed package
7
9 npm-explore - Browse an installed package
10
11 Synopsis
12 npm explore <pkg> [ -- <command>]
13
14 Description
15 Spawn a subshell in the directory of the installed package specified.
16
17 If a command is specified, then it is run in the subshell, which then
18 immediately terminates.
19
20 This is particularly handy in the case of git submodules in the
21 node_modules folder:
22
23 npm explore some-dependency -- git pull origin master
24
25 Note that the package is not automatically rebuilt afterwards, so be
26 sure to use npm rebuild <pkg> if you make any changes.
27
28 Configuration
29 shell
30 · Default: SHELL environment variable, or "bash" on Posix, or "cmd" on
31 Windows
32
33 · Type: path
34
35
36 The shell to run for the npm explore command.
37
38 See Also
39 · npm help folders
40
41 · npm help edit
42
43 · npm help rebuild
44
45 · npm help build
46
47 · npm help install
48
49
50
51
52 February 2021 NPM-EXPLORE(1)