NPM-EDIT(1)
π NPM-EDIT(1) π
okay so this is the npm-edit page from the npm manual, bestie β yes, the whole man page is literally called NPM-EDIT(1), that's just how man pages do. sit down, hydrate, and let me tell you about the one npm command that opens a text editor like it's 1998 in the best way possible π«Ά
β¨ NAME β¨
npm-edit β edit an installed package π
no cap, that's the whole name section. it's giving minimalism.
π¦ SYNOPSIS π¦
npm edit <pkg>[/<subpkg>...]
that's it, that's the whole vibe. <pkg> is the package, and you can keep chaining / + <subpkg> as many times as your little heart desires πΈ
π¨ real talk: this command is unaware of workspaces. like, it literally does not know they exist. not me being dramatic, that's just what the page says.
π DESCRIPTION π
so here's the tea β β npm edit picks a dependency in your current project and then opens that package folder in your default editor. and by "default editor" I mean whatever you've configured as the npm editor config β go peek at npm-config β¨npm-configβ© if you wanna know more about that β¨
then, the genuinely iconic part: after you've edited it, the package gets rebuilt so it picks up any changes in compiled packages. like it knows you touched stuff. it's respectful like that π
fr fr, here's the classic use case β you run:
npm install connect
to install connect into your package, and then:
npm edit connect
to make a few little changes to your locally installed copy. main character energy honestly π
π CONFIGURATION π
π« editor π«
- Default: The
EDITORorVISUALenvironment variables, or'%SYSTEMROOT%\notepad.exe'on Windows, or'vi'on Unix systems π - Type: String
this is the command that gets run for npm edit and npm config edit. that's it. that's the whole config. lowkey obsessed with how simple that is π§
π SEE ALSO π
npm help foldersπnpm help exploreπnpm help installπ¦npm help configβοΈnpm help npmrcπ
and that's the whole page, bestie!! go forth and edit your node_modules responsibly π this was NPM@12.2.1, dated October 2026, and yes the footer still insists on shouting NPM-EDIT(1) at you one last time. slay, periodt, bye πβ¨π¦
π¦ 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