diff options
author | npm-robot <ops+robot@npmjs.com> | 2022-02-19 05:11:58 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-02-19 03:11:58 +0000 |
commit | 406ffd26137af6751e539abe196af3faaa99b66b (patch) | |
tree | 0451cbc57b8fadc9af55dac49e7ae40826f14a0f /deps/npm/man/man1/npm-install.1 | |
parent | 8843381d9fed232921ce875d4fdd38810471a703 (diff) | |
download | node-new-406ffd26137af6751e539abe196af3faaa99b66b.tar.gz |
deps: upgrade npm to 8.5.1
PR-URL: https://github.com/nodejs/node/pull/42039
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Mestery <mestery@protonmail.com>
Reviewed-By: Rich Trott <rtrott@gmail.com>
Diffstat (limited to 'deps/npm/man/man1/npm-install.1')
-rw-r--r-- | deps/npm/man/man1/npm-install.1 | 20 |
1 files changed, 16 insertions, 4 deletions
diff --git a/deps/npm/man/man1/npm-install.1 b/deps/npm/man/man1/npm-install.1 index c77e379e5a..d8085ee231 100644 --- a/deps/npm/man/man1/npm-install.1 +++ b/deps/npm/man/man1/npm-install.1 @@ -87,11 +87,23 @@ NOTE: The \fB\-\-production\fP flag has no particular meaning when adding a . .IP \(bu 2 \fBnpm install <folder>\fP: - Install the package in the directory as a symlink in the current - project\. Its dependencies will be installed before it's linked\. If - \fB<folder>\fP sits inside the root of your project, its dependencies may + If \fB<folder>\fP sits inside the root of your project, its dependencies will be installed and may be hoisted to the top\-level \fBnode_modules\fP as they would for other - types of dependencies\. + types of dependencies\. If \fB<folder>\fP sits outside the root of your project, + \fInpm will not install the package dependencies\fR in the directory \fB<folder>\fP, + but it will create a symlink to \fB<folder>\fP\|\. +.QP +NOTE: If you want to install the content of a directory like a package from the registry instead of creating a link, you would need to use npm help \fBpack\fP while in the \fB<folder>\fP directory, and then install the resulting tarball instead of the \fB<folder>\fP using \fBnpm install <tarball file>\fP + +. + Example: +.P +.RS 2 +.nf + npm install \.\./\.\./other\-package + npm install \./sub\-package +.fi +.RE .IP \(bu 2 \fBnpm install <tarball file>\fP: Install a package that is sitting on the filesystem\. Note: if you just |