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.

61 lines
4.6 KiB

  1. <!doctype html>
  2. <html>
  3. <title>npm-ci</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-ci.html">
  7. <script async=true src="../../static/toc.js"></script>
  8. <body>
  9. <div id="wrapper">
  10. <h1><a href="../cli/npm-ci.html">npm-ci</a></h1> <p>Install a project with a clean slate</p>
  11. <h2 id="synopsis">SYNOPSIS</h2>
  12. <pre><code>npm ci</code></pre><h2 id="example">EXAMPLE</h2>
  13. <p>Make sure you have a package-lock and an up-to-date install:</p>
  14. <pre><code>$ cd ./my/npm/project
  15. $ npm install
  16. added 154 packages in 10s
  17. $ ls | grep package-lock</code></pre><p>Run <code>npm ci</code> in that project</p>
  18. <pre><code>$ npm ci
  19. added 154 packages in 5s</code></pre><p>Configure Travis to build using <code>npm ci</code> instead of <code>npm install</code>:</p>
  20. <pre><code># .travis.yml
  21. install:
  22. - npm ci
  23. # keep the npm cache around to speed up installs
  24. cache:
  25. directories:
  26. - &quot;$HOME/.npm&quot;</code></pre><h2 id="description">DESCRIPTION</h2>
  27. <p>This command is similar to <code><a href="../cli/npm-install.html">npm-install(1)</a></code>, except it&#39;s meant to be used in
  28. automated environments such as test platforms, continuous integration, and
  29. deployment. It can be significantly faster than a regular npm install by
  30. skipping certain user-oriented features. It is also more strict than a regular
  31. install, which can help catch errors or inconsistencies caused by the
  32. incrementally-installed local environments of most npm users.</p>
  33. <p>In short, the main differences between using <code>npm install</code> and <code>npm ci</code> are:</p>
  34. <ul>
  35. <li>The project <strong>must</strong> have an existing <code>package-lock.json</code> or <code>npm-shrinkwrap.json</code>.</li>
  36. <li>If dependencies in the package lock do not match those in <code>package.json</code>, <code>npm ci</code> will exit with an error, instead of updating the package lock.</li>
  37. <li><code>npm ci</code> can only install entire projects at a time: individual dependencies cannot be added with this command.</li>
  38. <li>If a <code>node_modules</code> is already present, it will be automatically removed before <code>npm ci</code> begins its install.</li>
  39. <li>It will never write to <code>package.json</code> or any of the package-locks: installs are essentially frozen.</li>
  40. </ul>
  41. <h2 id="see-also">SEE ALSO</h2>
  42. <ul>
  43. <li><a href="../cli/npm-install.html">npm-install(1)</a></li>
  44. <li><a href="../files/npm-package-locks.html">npm-package-locks(5)</a></li>
  45. </ul>
  46. </div>
  47. <table border=0 cellspacing=0 cellpadding=0 id=npmlogo>
  48. <tr><td style="width:180px;height:10px;background:rgb(237,127,127)" colspan=18>&nbsp;</td></tr>
  49. <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>
  50. <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>
  51. <tr><td style="width:10px;height:10px;background:#fff" rowspan=2>&nbsp;</td></tr>
  52. <tr><td style="width:10px;height:10px;background:#fff">&nbsp;</td></tr>
  53. <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>
  54. <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>
  55. </table>
  56. <p id="footer">npm-ci &mdash; npm@6.4.1</p>