11cb0ef41Sopenharmony_ci--- 21cb0ef41Sopenharmony_cititle: npm-explore 31cb0ef41Sopenharmony_cisection: 1 41cb0ef41Sopenharmony_cidescription: Browse an installed package 51cb0ef41Sopenharmony_ci--- 61cb0ef41Sopenharmony_ci 71cb0ef41Sopenharmony_ci### Synopsis 81cb0ef41Sopenharmony_ci 91cb0ef41Sopenharmony_ci```bash 101cb0ef41Sopenharmony_cinpm explore <pkg> [ -- <command>] 111cb0ef41Sopenharmony_ci``` 121cb0ef41Sopenharmony_ci 131cb0ef41Sopenharmony_ciNote: This command is unaware of workspaces. 141cb0ef41Sopenharmony_ci 151cb0ef41Sopenharmony_ci### Description 161cb0ef41Sopenharmony_ci 171cb0ef41Sopenharmony_ciSpawn a subshell in the directory of the installed package specified. 181cb0ef41Sopenharmony_ci 191cb0ef41Sopenharmony_ciIf a command is specified, then it is run in the subshell, which then 201cb0ef41Sopenharmony_ciimmediately terminates. 211cb0ef41Sopenharmony_ci 221cb0ef41Sopenharmony_ciThis is particularly handy in the case of git submodules in the 231cb0ef41Sopenharmony_ci`node_modules` folder: 241cb0ef41Sopenharmony_ci 251cb0ef41Sopenharmony_ci```bash 261cb0ef41Sopenharmony_cinpm explore some-dependency -- git pull origin master 271cb0ef41Sopenharmony_ci``` 281cb0ef41Sopenharmony_ci 291cb0ef41Sopenharmony_ciNote that the package is *not* automatically rebuilt afterwards, so be 301cb0ef41Sopenharmony_cisure to use `npm rebuild <pkg>` if you make any changes. 311cb0ef41Sopenharmony_ci 321cb0ef41Sopenharmony_ci### Configuration 331cb0ef41Sopenharmony_ci 341cb0ef41Sopenharmony_ci#### `shell` 351cb0ef41Sopenharmony_ci 361cb0ef41Sopenharmony_ci* Default: SHELL environment variable, or "bash" on Posix, or "cmd.exe" on 371cb0ef41Sopenharmony_ci Windows 381cb0ef41Sopenharmony_ci* Type: String 391cb0ef41Sopenharmony_ci 401cb0ef41Sopenharmony_ciThe shell to run for the `npm explore` command. 411cb0ef41Sopenharmony_ci 421cb0ef41Sopenharmony_ci 431cb0ef41Sopenharmony_ci 441cb0ef41Sopenharmony_ci### See Also 451cb0ef41Sopenharmony_ci 461cb0ef41Sopenharmony_ci* [npm folders](/configuring-npm/folders) 471cb0ef41Sopenharmony_ci* [npm edit](/commands/npm-edit) 481cb0ef41Sopenharmony_ci* [npm rebuild](/commands/npm-rebuild) 491cb0ef41Sopenharmony_ci* [npm install](/commands/npm-install) 50