1NPM-EXPLORE(1)                                                  NPM-EXPLORE(1)
2
3
4

NAME

6       npm-explore - Browse an installed package
7
8   Synopsis
9         npm explore <pkg> [ -- <command>]
10
11       Note: This command is unaware of workspaces.
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       <!-- AUTOGENERATED CONFIG DESCRIPTIONS  START  -->  <!--  automatically
29       generated,  do  not edit manually --> <!-- see lib/utils/config/defini‐
30       tions.js -->
31
32   shell
33       • Default: SHELL environment variable, or "bash" on Posix, or "cmd.exe"
34         on Windows
35
36       • Type: String
37
38
39       The  shell to run for the npm explore command.  <!-- automatically gen‐
40       erated, do not edit  manually  -->  <!--  see  lib/utils/config/defini‐
41       tions.js -->
42
43       <!-- AUTOGENERATED CONFIG DESCRIPTIONS END -->
44
45
46   See Also
47       • npm help folders
48
49       • npm help edit
50
51       • npm help rebuild
52
53       • npm help install
54
55
56
57
58                                 January 2022                   NPM-EXPLORE(1)
Impressum