1NPM-EDIT(1) NPM-EDIT(1)
2
3
4
6 npm-edit - Edit an installed package
7
8 Synopsis
9 npm edit <pkg>
10
11 Note: This command is unaware of workspaces.
12
13 Description
14 Selects a dependency in the current project and opens the package
15 folder in the default editor (or whatever you've configured as the npm
16 editor config -- see npm-config npm-config).
17
18 After it has been edited, the package is rebuilt so as to pick up any
19 changes in compiled packages.
20
21 For instance, you can do npm install connect to install connect into
22 your package, and then npm edit connect to make a few changes to your
23 locally installed copy.
24
25 Configuration
26 <!-- AUTOGENERATED CONFIG DESCRIPTIONS START --> <!-- automatically
27 generated, do not edit manually --> <!-- see lib/utils/config/defini‐
28 tions.js -->
29
30 editor
31 • Default: The EDITOR or VISUAL environment variables, or 'notepad.exe'
32 on Windows, or 'vim' on Unix systems
33
34 • Type: String
35
36
37 The command to run for npm edit and npm config edit. <!-- automati‐
38 cally generated, do not edit manually --> <!-- see lib/utils/con‐
39 fig/definitions.js -->
40
41 <!-- AUTOGENERATED CONFIG DESCRIPTIONS END -->
42
43
44 See Also
45 • npm help folders
46
47 • npm help explore
48
49 • npm help install
50
51 • npm help config
52
53 • npm help npmrc
54
55
56
57
58 January 2022 NPM-EDIT(1)