From 0928584444ac6edf1ead0b93c9d05b1124183702 Mon Sep 17 00:00:00 2001
From: Forrest L Norvell This command installs a package, and any packages that it depends on. If the
package has a shrinkwrap file, the installation of dependencies will be driven
@@ -84,11 +84,13 @@ after packing it up into a tarball (b). When using any of the above options to save dependencies to your
-package.json, there is an additional, optional flag:DESCRIPTION
-O, --save-optional
: Package will appear in your optionalDependencies
.
-E, --save-exact
: Saved dependencies will be configured with an
exact version rather than using npm's default semver range
operator.
-B, --save-bundle
: Saved dependencies will also be added to your bundleDependencies
list.
Further, if you have an npm-shrinkwrap.json
then it will be updated as
well.
<scope>
is optional. The package will be downloaded from the registry
@@ -104,6 +106,7 @@ npm install @myorg/privatepackage
npm install node-tap --save-dev
npm install dtrace-provider --save-optional
npm install readable-stream --save --save-exact
+npm install ansi-regex --save --save-bundle
npm-folders(
your local node_modules
folder with the same layout it uses with the
global node_modules
folder. Only your direct dependencies will show in
node_modules
and everything they depend on will be flattened in their
-node_modules
folders. This obviously will elminate some deduping.
+node_modules
folders. This obviously will eliminate some deduping.
The --legacy-bundling
argument will cause npm to install the package such
that versions of npm prior to 1.4, such as the one included with node 0.8,
can install the package. This eliminates all automatic deduping.
@@ -307,5 +310,5 @@ affects a real use-case, it will be investigated.
-
+
--
cgit v1.2.3