1NPM-EXPLORE(1)                                                  NPM-EXPLORE(1)
2
3
4
5section: cli−commands title: npm−explore
6

NAME

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