• Home
  • Raw
  • Download

Lines Matching full:install

3 title: npm-install
4 description: Install a package
7 # npm-install(1)
9 ## Install a package
14 npm install (with no args, in package dir)
15 npm install [<@scope>/]<name>
16 npm install [<@scope>/]<name>@<tag>
17 npm install [<@scope>/]<name>@<version>
18 npm install [<@scope>/]<name>@<version range>
19 npm install <alias>@npm:<name>
20 npm install <git-host>:<git-user>/<repo-name>
21 npm install <git repo url>
22 npm install <tarball file>
23 npm install <tarball url>
24 npm install <folder>
49 perhaps if you also want to be able to easily install it elsewhere
53 * `npm install` (in package directory, no arguments):
55 Install the dependencies in the local node_modules folder.
61 By default, `npm install` will install all modules listed as dependencies
65 is set to `production`), npm will not install modules listed in
66 `devDependencies`. To install all modules listed in both `dependencies`
73 * `npm install <folder>`:
75 Install the package in the directory as a symlink in the current project.
80 * `npm install <tarball file>`:
82 Install a package that is sitting on the filesystem. Note: if you just want
94 npm install ./package.tgz
96 * `npm install <tarball url>`:
98 Fetch the tarball url, and then install it. In order to distinguish between
103 npm install https://github.com/indexzero/forever/tarball/v0.5.6
105 * `npm install [<@scope>/]<name>`:
107 Do a `<name>@<tag>` install, where `<tag>` is the "tag" config. (See
110 In most cases, this will install the version of the modules tagged as
115 npm install sax
117 * `npm install <alias>@npm:<name>`:
119 Install a package under a custom alias. Allows multiple versions of
129 npm install my-react@npm:react
130 npm install jquery2@npm:jquery@2
131 npm install jquery3@npm:jquery@3
132 npm install npa@npm:npm-package-arg
135 `npm install` saves any specified packages into `dependencies` by default.
171 npm install sax
172 npm install githubname/reponame
173 npm install @myorg/privatepackage
174 npm install node-tap --save-dev
175 npm install dtrace-provider --save-optional
176 npm install readable-stream --save-exact
177 npm install ansi-regex --save-bundle
181 working directory, then it will try to install that, and only try to
184 * `npm install [<@scope>/]<name>@<tag>`:
186 Install the version of the package that is referenced by the specified tag.
193 npm install sax@latest
194 npm install @myorg/mypackage@latest
197 * `npm install [<@scope>/]<name>@<version>`:
199 Install the specified version of the package. This will fail if the
205 npm install sax@0.1.1
206 npm install @myorg/privatepackage@1.5.0
209 * `npm install [<@scope>/]<name>@<version range>`:
211 Install a version of the package matching the specified version range. This
219 npm install sax@">=0.1.0 <0.2.0"
220 npm install @myorg/privatepackage@">=0.1.0 <0.2.0"
223 * `npm install <git remote url>`:
265 npm install git+ssh://git@github.com:npm/cli.git#v1.0.27
266 npm install git+ssh://git@github.com:npm/cli#semver:^5.0
267 npm install git+https://isaacs@github.com/npm/cli.git
268 npm install git://github.com/npm/cli.git#v1.0.27
269 GIT_SSH_COMMAND='ssh -i ~/.ssh/custom_ident' npm install git+ssh://git@github.com:npm/cli.git
272 * `npm install <githubname>/<githubrepo>[#<commit-ish>]`:
273 * `npm install github:<githubname>/<githubrepo>[#<commit-ish>]`:
275 Install the package at `https://github.com/githubname/githubrepo` by
292 npm install mygithubuser/myproject
293 npm install github:mygithubuser/myproject
296 * `npm install gist:[<githubname>/]<gistID>[#<commit-ish>|#semver:<semver>]`:
298 Install the package at `https://gist.github.com/gistID` by attempting to
309 npm install gist:101a11beef
312 * `npm install bitbucket:<bitbucketname>/<bitbucketrepo>[#<commit-ish>]`:
314 Install the package at `https://bitbucket.org/bitbucketname/bitbucketrepo`
331 npm install bitbucket:mybitbucketuser/myproject
334 * `npm install gitlab:<gitlabname>/<gitlabrepo>[#<commit-ish>]`:
336 Install the package at `https://gitlab.com/gitlabname/gitlabrepo`
353 npm install gitlab:mygitlabuser/myproject
354 npm install gitlab:myusr/myproj#semver:^5.0
361 npm install sax@">=0.1.0 <0.2.0" bench supervisor
364 The `--tag` argument will apply to all of the specified install targets. If a
368 The `--dry-run` argument will report in the usual way what the install would
378 npm install sax --force
382 install that acknowledges the number of dependencies looking for funding.
385 The `-g` or `--global` argument will cause npm to install the package globally
388 The `--global-style` argument will cause npm to install the package into
397 The `--legacy-bundling` argument will cause npm to install the package such
399 can install the package. This eliminates all automatic deduping.
431 To install a package, npm uses the following algorithm:
442 kinds of actions are install, update, remove and move
469 Because B's D@1 will be installed in the top level, C now has to install D@2
476 ### Limitations of npm's Install Algorithm
478 npm will refuse to install any package with an identical name to the
483 cause npm to try to install a never-ending tree of packages. Here is
492 than the one that is already in the tree, it must install a separate
493 copy. The same is true of `A'`, which must install `B'`. Because `B'`
497 To avoid this situation, npm flat-out refuses to install any