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   shell
29       •   Default:  SHELL  environment  variable,  or  "bash"  on  Posix,  or
30           "cmd.exe" on Windows
31
32       •   Type: String
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 install
45
46
47
48                                 November 2023                  NPM-EXPLORE(1)
Impressum