NPM-EXPLORE(1)
β¨ NAME β¨
okay so this is npm-explore(1), aka the manual page for browsing an installed package, and itβs giving βlet me just peek inside node_modules real quickβ energy π
β¨
πΈ Synopsis πΈ
npm explore <pkg> [ -- <command>]
β οΈ Note: This command is unaware of workspaces.
π¦ Description π¦
Bestie, what this does is spawn a subshell in the directory of the installed package you specified. Literally just drops you in there. π«Ά
If you also give it a command, then that command is run in the subshell, and the subshell immediately terminates afterward. In and out, no lingering, no cap. π¨
This is particularly handy in the case of git submodules in the node_modules folder:
npm explore some-dependency -- git pull origin master
π Important: the package is not automatically rebuilt afterwards. So if you make any changes, be sure to use npm rebuild <pkg>. Do not skip this part, iykyk.
π Configuration π
π shell
shellβ the shell to run for thenpm explorecommand.- Default:
SHELLenvironment variable, or"bash"on Posix, or"cmd.exe"on Windows - Type: String
- Default:
π See Also π
npm help foldersnpm help editnpm help rebuildnpm help install
π Thatβs the whole page, bestie β brought to you by NPM@12.2.1, October 2026. Now go explore (responsibly) πβ¨
π¦ where this page comes from
- arch rolling: npm 12.2.1-1 Β· Artistic-2.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms