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