1NPM-EDIT(1)                                                        NPM-EDIT(1)
2
3
4

NAME

6       npm-edit - Edit an installed package
7
8   Synopsis
9         npm edit <pkg>[/<subpkg>...]
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   editor
27       •   Default: The EDITOR or VISUAL environment variables,  or  '%SYSTEM‐
28           ROOT%\notepad.exe' on Windows, or 'vi' on Unix systems
29
30       •   Type: String
31
32
33       The command to run for npm edit and npm config edit.
34
35   See Also
36       •   npm help folders
37
38       •   npm help explore
39
40       •   npm help install
41
42       •   npm help config
43
44       •   npm help npmrc
45
46
47
48                                 November 2023                     NPM-EDIT(1)
Impressum