1NPM-EDIT(1) NPM-EDIT(1)
2
3
4
6 npm-edit - Edit an installed package
7
8 Synopsis
9 npm edit <pkg>[/<subpkg>...]
10
11 Description
12 Selects a (sub)dependency in the current working directory and opens
13 the package folder in the default editor (or whatever you've configured
14 as the npm editor config -- see npm-config npm-config).
15
16 After it has been edited, the package is rebuilt so as to pick up any
17 changes in compiled packages.
18
19 For instance, you can do npm install connect to install connect into
20 your package, and then npm edit connect to make a few changes to your
21 locally installed copy.
22
23 Configuration
24 editor
25 · Default: EDITOR environment variable if set, or "vi" on Posix, or
26 "notepad" on Windows.
27
28 · Type: path
29
30
31 The command to run for npm edit or npm config edit.
32
33 See Also
34 · npm help folders
35
36 · npm help explore
37
38 · npm help install
39
40 · npm help config
41
42 · npm help npmrc
43
44
45
46
47 February 2021 NPM-EDIT(1)