node/deps/npm/man/man1/npm-edit.1

51 lines
1.0 KiB
Groff
Raw Normal View History

.TH "NPM\-EDIT" "1" "February 2015" "" ""
.SH "NAME"
2014-09-25 05:41:07 +08:00
\fBnpm-edit\fR \- Edit an installed package
.SH SYNOPSIS
.P
.RS 2
2014-11-05 07:08:12 +08:00
.nf
npm edit <name>[@<version>]
2014-11-05 07:08:12 +08:00
.fi
2014-09-25 05:41:07 +08:00
.RE
.SH DESCRIPTION
.P
Opens the package folder in the default editor (or whatever you've
2014-09-17 06:38:50 +08:00
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\.
2014-09-25 05:41:07 +08:00
.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\.
2014-09-25 05:41:07 +08:00
.IP \(bu 2
Type: path
2014-09-25 05:41:07 +08:00
.RE
.P
The command to run for \fBnpm edit\fR or \fBnpm config edit\fR\|\.
2014-09-25 05:41:07 +08:00
.SH SEE ALSO
.RS 0
.IP \(bu 2
2014-09-17 06:38:50 +08:00
npm help 5 folders
2014-09-25 05:41:07 +08:00
.IP \(bu 2
npm help explore
2014-09-25 05:41:07 +08:00
.IP \(bu 2
npm help install
2014-09-25 05:41:07 +08:00
.IP \(bu 2
npm help config
2014-09-25 05:41:07 +08:00
.IP \(bu 2
2014-09-17 06:38:50 +08:00
npm help 7 config
2014-09-25 05:41:07 +08:00
.IP \(bu 2
2014-09-17 06:38:50 +08:00
npm help 5 npmrc
2014-09-25 05:41:07 +08:00
.RE