Team Ai
Datasetpublic

codekingpro/portable-devtools

sourceHugging Faceupdated 5mo agoView on Hugging Face
1likes14kdownloads
npm-explore.md47 linesDownload Raw Back to commands
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 immediately terminates.
20
21This is particularly handy in the case of git submodules in the `node_modules` folder:
22
23```bash
24npm explore some-dependency -- git pull origin master
25```
26
27Note that the package is *not* automatically rebuilt afterwards, so be sure to use `npm rebuild <pkg>` if you make any changes.
28
29### Configuration
30
31#### `shell`
32
33* Default: SHELL environment variable, or "bash" on Posix, or "cmd.exe" on
34  Windows
35* Type: String
36
37The shell to run for the `npm explore` command.
38
39
40
41### See Also
42
43* [npm folders](/configuring-npm/folders)
44* [npm edit](/commands/npm-edit)
45* [npm rebuild](/commands/npm-rebuild)
46* [npm install](/commands/npm-install)
47 
codekingpro/portable-devtools · Team Ai