Simple email application for Android. Original source code: https://framagit.org/dystopia-project/simple-email
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

158 lines
9.3 KiB

  1. <!doctype html>
  2. <html>
  3. <title>npm</title>
  4. <meta charset="utf-8">
  5. <link rel="stylesheet" type="text/css" href="../../static/style.css">
  6. <link rel="canonical" href="https://www.npmjs.org/doc/cli/npm.html">
  7. <script async=true src="../../static/toc.js"></script>
  8. <body>
  9. <div id="wrapper">
  10. <h1><a href="../cli/npm.html">npm</a></h1> <p>javascript package manager</p>
  11. <h2 id="synopsis">SYNOPSIS</h2>
  12. <pre><code>npm &lt;command&gt; [args]</code></pre><h2 id="version">VERSION</h2>
  13. <p>6.4.1</p>
  14. <h2 id="description">DESCRIPTION</h2>
  15. <p>npm is the package manager for the Node JavaScript platform. It puts
  16. modules in place so that node can find them, and manages dependency
  17. conflicts intelligently.</p>
  18. <p>It is extremely configurable to support a wide variety of use cases.
  19. Most commonly, it is used to publish, discover, install, and develop node
  20. programs.</p>
  21. <p>Run <code>npm help</code> to get a list of available commands.</p>
  22. <h2 id="important">IMPORTANT</h2>
  23. <p>npm is configured to use npm, Inc.&#39;s public registry at
  24. <a href="https://registry.npmjs.org">https://registry.npmjs.org</a> by default. Use of the npm public registry is
  25. subject to terms of use available at <a href="https://www.npmjs.com/policies/terms">https://www.npmjs.com/policies/terms</a>.</p>
  26. <p>You can configure npm to use any compatible registry you like, and even run
  27. your own registry. Use of someone else&#39;s registry may be governed by their
  28. terms of use.</p>
  29. <h2 id="introduction">INTRODUCTION</h2>
  30. <p>You probably got npm because you want to install stuff.</p>
  31. <p>Use <code>npm install blerg</code> to install the latest version of &quot;blerg&quot;. Check out
  32. <code><a href="../cli/npm-install.html">npm-install(1)</a></code> for more info. It can do a lot of stuff.</p>
  33. <p>Use the <code>npm search</code> command to show everything that&#39;s available.
  34. Use <code>npm ls</code> to show everything you&#39;ve installed.</p>
  35. <h2 id="dependencies">DEPENDENCIES</h2>
  36. <p>If a package references to another package with a git URL, npm depends
  37. on a preinstalled git.</p>
  38. <p>If one of the packages npm tries to install is a native node module and
  39. requires compiling of C++ Code, npm will use
  40. <a href="https://github.com/TooTallNate/node-gyp">node-gyp</a> for that task.
  41. For a Unix system, <a href="https://github.com/TooTallNate/node-gyp">node-gyp</a>
  42. needs Python, make and a buildchain like GCC. On Windows,
  43. Python and Microsoft Visual Studio C++ are needed. Python 3 is
  44. not supported by <a href="https://github.com/TooTallNate/node-gyp">node-gyp</a>.
  45. For more information visit
  46. <a href="https://github.com/TooTallNate/node-gyp">the node-gyp repository</a> and
  47. the <a href="https://github.com/TooTallNate/node-gyp/wiki">node-gyp Wiki</a>.</p>
  48. <h2 id="directories">DIRECTORIES</h2>
  49. <p>See <code><a href="../files/npm-folders.html">npm-folders(5)</a></code> to learn about where npm puts stuff.</p>
  50. <p>In particular, npm has two modes of operation:</p>
  51. <ul>
  52. <li>global mode:
  53. npm installs packages into the install prefix at
  54. <code>prefix/lib/node_modules</code> and bins are installed in <code>prefix/bin</code>.</li>
  55. <li>local mode:
  56. npm installs packages into the current project directory, which
  57. defaults to the current working directory. Packages are installed to
  58. <code>./node_modules</code>, and bins are installed to <code>./node_modules/.bin</code>.</li>
  59. </ul>
  60. <p>Local mode is the default. Use <code>-g</code> or <code>--global</code> on any command to
  61. operate in global mode instead.</p>
  62. <h2 id="developer-usage">DEVELOPER USAGE</h2>
  63. <p>If you&#39;re using npm to develop and publish your code, check out the
  64. following help topics:</p>
  65. <ul>
  66. <li>json:
  67. Make a package.json file. See <code><a href="../files/package.json.html">package.json(5)</a></code>.</li>
  68. <li>link:
  69. For linking your current working code into Node&#39;s path, so that you
  70. don&#39;t have to reinstall every time you make a change. Use
  71. <code>npm link</code> to do this.</li>
  72. <li>install:
  73. It&#39;s a good idea to install things if you don&#39;t need the symbolic link.
  74. Especially, installing other peoples code from the registry is done via
  75. <code>npm install</code></li>
  76. <li>adduser:
  77. Create an account or log in. Credentials are stored in the
  78. user config file.</li>
  79. <li>publish:
  80. Use the <code>npm publish</code> command to upload your code to the registry.</li>
  81. </ul>
  82. <h2 id="configuration">CONFIGURATION</h2>
  83. <p>npm is extremely configurable. It reads its configuration options from
  84. 5 places.</p>
  85. <ul>
  86. <li>Command line switches:
  87. Set a config with <code>--key val</code>. All keys take a value, even if they
  88. are booleans (the config parser doesn&#39;t know what the options are at
  89. the time of parsing). If no value is provided, then the option is set
  90. to boolean <code>true</code>.</li>
  91. <li>Environment Variables:
  92. Set any config by prefixing the name in an environment variable with
  93. <code>npm_config_</code>. For example, <code>export npm_config_key=val</code>.</li>
  94. <li>User Configs:
  95. The file at $HOME/.npmrc is an ini-formatted list of configs. If
  96. present, it is parsed. If the <code>userconfig</code> option is set in the cli
  97. or env, then that will be used instead.</li>
  98. <li>Global Configs:
  99. The file found at ../etc/npmrc (from the node executable, by default
  100. this resolves to /usr/local/etc/npmrc) will be parsed if it is found.
  101. If the <code>globalconfig</code> option is set in the cli, env, or user config,
  102. then that file is parsed instead.</li>
  103. <li>Defaults:
  104. npm&#39;s default configuration options are defined in
  105. lib/utils/config-defs.js. These must not be changed.</li>
  106. </ul>
  107. <p>See <code><a href="../misc/npm-config.html">npm-config(7)</a></code> for much much more information.</p>
  108. <h2 id="contributions">CONTRIBUTIONS</h2>
  109. <p>Patches welcome!</p>
  110. <p>If you would like to contribute, but don&#39;t know what to work on, read
  111. the contributing guidelines and check the issues list.</p>
  112. <ul>
  113. <li><a href="https://github.com/npm/cli/blob/latest/CONTRIBUTING.md">CONTRIBUTING.md</a></li>
  114. <li><a href="https://npm.community/c/bugs">Bug tracker</a></li>
  115. <li><a href="https://npm.community/c/support">Support tracker</a></li>
  116. </ul>
  117. <h2 id="bugs">BUGS</h2>
  118. <p>When you find issues, please report them:</p>
  119. <ul>
  120. <li>web:
  121. <a href="https://npm.community/c/bugs">https://npm.community/c/bugs</a></li>
  122. </ul>
  123. <p>Be sure to follow the template and bug reporting guidelines. You can also ask
  124. for help in the <a href="https://npm.community/c/support">support forum</a> if you&#39;re
  125. unsure if it&#39;s actually a bug or are having trouble coming up with a detailed
  126. reproduction to report.</p>
  127. <h2 id="author">AUTHOR</h2>
  128. <p><a href="http://blog.izs.me/">Isaac Z. Schlueter</a> ::
  129. <a href="https://github.com/isaacs/">isaacs</a> ::
  130. <a href="https://twitter.com/izs">@izs</a> ::
  131. <a href="mailto:&#105;&#64;&#x69;&#122;&#115;&#x2e;&#x6d;&#x65;">&#105;&#64;&#x69;&#122;&#115;&#x2e;&#x6d;&#x65;</a></p>
  132. <h2 id="see-also">SEE ALSO</h2>
  133. <ul>
  134. <li><a href="../cli/npm-help.html">npm-help(1)</a></li>
  135. <li><a href="../../doc/README.html">README</a></li>
  136. <li><a href="../files/package.json.html">package.json(5)</a></li>
  137. <li><a href="../cli/npm-install.html">npm-install(1)</a></li>
  138. <li><a href="../cli/npm-config.html">npm-config(1)</a></li>
  139. <li><a href="../misc/npm-config.html">npm-config(7)</a></li>
  140. <li><a href="../files/npmrc.html">npmrc(5)</a></li>
  141. <li><a href="../misc/npm-index.html">npm-index(7)</a></li>
  142. </ul>
  143. </div>
  144. <table border=0 cellspacing=0 cellpadding=0 id=npmlogo>
  145. <tr><td style="width:180px;height:10px;background:rgb(237,127,127)" colspan=18>&nbsp;</td></tr>
  146. <tr><td rowspan=4 style="width:10px;height:10px;background:rgb(237,127,127)">&nbsp;</td><td style="width:40px;height:10px;background:#fff" colspan=4>&nbsp;</td><td style="width:10px;height:10px;background:rgb(237,127,127)" rowspan=4>&nbsp;</td><td style="width:40px;height:10px;background:#fff" colspan=4>&nbsp;</td><td rowspan=4 style="width:10px;height:10px;background:rgb(237,127,127)">&nbsp;</td><td colspan=6 style="width:60px;height:10px;background:#fff">&nbsp;</td><td style="width:10px;height:10px;background:rgb(237,127,127)" rowspan=4>&nbsp;</td></tr>
  147. <tr><td colspan=2 style="width:20px;height:30px;background:#fff" rowspan=3>&nbsp;</td><td style="width:10px;height:10px;background:rgb(237,127,127)" rowspan=3>&nbsp;</td><td style="width:10px;height:10px;background:#fff" rowspan=3>&nbsp;</td><td style="width:20px;height:10px;background:#fff" rowspan=4 colspan=2>&nbsp;</td><td style="width:10px;height:20px;background:rgb(237,127,127)" rowspan=2>&nbsp;</td><td style="width:10px;height:10px;background:#fff" rowspan=3>&nbsp;</td><td style="width:20px;height:10px;background:#fff" rowspan=3 colspan=2>&nbsp;</td><td style="width:10px;height:10px;background:rgb(237,127,127)" rowspan=3>&nbsp;</td><td style="width:10px;height:10px;background:#fff" rowspan=3>&nbsp;</td><td style="width:10px;height:10px;background:rgb(237,127,127)" rowspan=3>&nbsp;</td></tr>
  148. <tr><td style="width:10px;height:10px;background:#fff" rowspan=2>&nbsp;</td></tr>
  149. <tr><td style="width:10px;height:10px;background:#fff">&nbsp;</td></tr>
  150. <tr><td style="width:60px;height:10px;background:rgb(237,127,127)" colspan=6>&nbsp;</td><td colspan=10 style="width:10px;height:10px;background:rgb(237,127,127)">&nbsp;</td></tr>
  151. <tr><td colspan=5 style="width:50px;height:10px;background:#fff">&nbsp;</td><td style="width:40px;height:10px;background:rgb(237,127,127)" colspan=4>&nbsp;</td><td style="width:90px;height:10px;background:#fff" colspan=9>&nbsp;</td></tr>
  152. </table>
  153. <p id="footer">npm &mdash; npm@6.4.1</p>