mirror of https://github.com/lukechilds/node.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
50 lines
1.0 KiB
50 lines
1.0 KiB
.TH "NPM\-EDIT" "1" "September 2014" "" ""
|
|
.SH "NAME"
|
|
\fBnpm-edit\fR \- Edit an installed package
|
|
.SH SYNOPSIS
|
|
.P
|
|
.RS 2
|
|
.EX
|
|
npm edit <name>[@<version>]
|
|
.EE
|
|
.RE
|
|
.SH DESCRIPTION
|
|
.P
|
|
Opens the package folder in the default editor (or whatever you've
|
|
configured as the npm \fBeditor\fR config \-\- see npm help 7 \fBnpm\-config\fR\|\.)
|
|
.P
|
|
After it has been edited, the package is rebuilt so as to pick up any
|
|
changes in compiled packages\.
|
|
.P
|
|
For instance, you can do \fBnpm install connect\fR to install connect
|
|
into your package, and then \fBnpm edit connect\fR to make a few
|
|
changes to your locally installed copy\.
|
|
.SH CONFIGURATION
|
|
.SS editor
|
|
.RS 0
|
|
.IP \(bu 2
|
|
Default: \fBEDITOR\fR environment variable if set, or \fB"vi"\fR on Posix,
|
|
or \fB"notepad"\fR on Windows\.
|
|
.IP \(bu 2
|
|
Type: path
|
|
|
|
.RE
|
|
.P
|
|
The command to run for \fBnpm edit\fR or \fBnpm config edit\fR\|\.
|
|
.SH SEE ALSO
|
|
.RS 0
|
|
.IP \(bu 2
|
|
npm help 5 folders
|
|
.IP \(bu 2
|
|
npm help explore
|
|
.IP \(bu 2
|
|
npm help install
|
|
.IP \(bu 2
|
|
npm help config
|
|
.IP \(bu 2
|
|
npm help 7 config
|
|
.IP \(bu 2
|
|
npm help 5 npmrc
|
|
|
|
.RE
|
|
|
|
|