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