2015-02-06 17:14:25 +08:00
|
|
|
.TH "NPM\-INIT" "1" "February 2015" "" ""
|
2011-11-27 01:21:03 +08:00
|
|
|
.SH "NAME"
|
2014-09-25 05:41:07 +08:00
|
|
|
\fBnpm-init\fR \- Interactively create a package\.json file
|
|
|
|
.SH SYNOPSIS
|
|
|
|
.P
|
|
|
|
.RS 2
|
2014-11-05 07:08:12 +08:00
|
|
|
.nf
|
|
|
|
npm init [\-f|\-\-force|\-y|\-\-yes]
|
|
|
|
.fi
|
2014-09-25 05:41:07 +08:00
|
|
|
.RE
|
|
|
|
.SH DESCRIPTION
|
|
|
|
.P
|
2011-11-27 01:21:03 +08:00
|
|
|
This will ask you a bunch of questions, and then write a package\.json for you\.
|
|
|
|
.P
|
|
|
|
It attempts to make reasonable guesses about what you want things to be set to,
|
2014-09-25 05:41:07 +08:00
|
|
|
and then writes a package\.json file with the options you've selected\.
|
2011-11-27 01:21:03 +08:00
|
|
|
.P
|
2014-09-25 05:41:07 +08:00
|
|
|
If you already have a package\.json file, it'll read that first, and default to
|
2011-11-27 01:21:03 +08:00
|
|
|
the options in there\.
|
|
|
|
.P
|
|
|
|
It is strictly additive, so it does not delete options from your package\.json
|
|
|
|
without a really good reason to do so\.
|
2014-11-05 07:08:12 +08:00
|
|
|
.P
|
|
|
|
If you invoke it with \fB\-f\fR, \fB\-\-force\fR, \fB\-y\fR, or \fB\-\-yes\fR, it will use only
|
|
|
|
defaults and not prompt you for any options\.
|
2014-09-25 05:41:07 +08:00
|
|
|
.SH SEE ALSO
|
|
|
|
.RS 0
|
|
|
|
.IP \(bu 2
|
|
|
|
https://github\.com/isaacs/init\-package\-json
|
|
|
|
.IP \(bu 2
|
2014-09-17 06:38:50 +08:00
|
|
|
npm help 5 package\.json
|
2014-09-25 05:41:07 +08:00
|
|
|
.IP \(bu 2
|
2011-11-27 01:21:03 +08:00
|
|
|
npm help version
|
2014-09-25 05:41:07 +08:00
|
|
|
|
|
|
|
.RE
|
2011-11-27 01:21:03 +08:00
|
|
|
|