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.

92 lines
5.8 KiB

  1. <!doctype html>
  2. <html>
  3. <title>npm-cache</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-cache.html">
  7. <script async=true src="../../static/toc.js"></script>
  8. <body>
  9. <div id="wrapper">
  10. <h1><a href="../cli/npm-cache.html">npm-cache</a></h1> <p>Manipulates packages cache</p>
  11. <h2 id="synopsis">SYNOPSIS</h2>
  12. <pre><code>npm cache add &lt;tarball file&gt;
  13. npm cache add &lt;folder&gt;
  14. npm cache add &lt;tarball url&gt;
  15. npm cache add &lt;name&gt;@&lt;version&gt;
  16. npm cache clean [&lt;path&gt;]
  17. aliases: npm cache clear, npm cache rm
  18. npm cache verify</code></pre><h2 id="description">DESCRIPTION</h2>
  19. <p>Used to add, list, or clean the npm cache folder.</p>
  20. <ul>
  21. <li><p>add:
  22. Add the specified package to the local cache. This command is primarily
  23. intended to be used internally by npm, but it can provide a way to
  24. add data to the local installation cache explicitly.</p>
  25. </li>
  26. <li><p>clean:
  27. Delete all data out of the cache folder.</p>
  28. </li>
  29. <li><p>verify:
  30. Verify the contents of the cache folder, garbage collecting any unneeded data,
  31. and verifying the integrity of the cache index and all cached data.</p>
  32. </li>
  33. </ul>
  34. <h2 id="details">DETAILS</h2>
  35. <p>npm stores cache data in an opaque directory within the configured <code>cache</code>,
  36. named <code>_cacache</code>. This directory is a <code>cacache</code>-based content-addressable cache
  37. that stores all http request data as well as other package-related data. This
  38. directory is primarily accessed through <code>pacote</code>, the library responsible for
  39. all package fetching as of npm@5.</p>
  40. <p>All data that passes through the cache is fully verified for integrity on both
  41. insertion and extraction. Cache corruption will either trigger an error, or
  42. signal to <code>pacote</code> that the data must be refetched, which it will do
  43. automatically. For this reason, it should never be necessary to clear the cache
  44. for any reason other than reclaiming disk space, thus why <code>clean</code> now requires
  45. <code>--force</code> to run.</p>
  46. <p>There is currently no method exposed through npm to inspect or directly manage
  47. the contents of this cache. In order to access it, <code>cacache</code> must be used
  48. directly.</p>
  49. <p>npm will not remove data by itself: the cache will grow as new packages are
  50. installed.</p>
  51. <h2 id="a-note-about-the-cache-s-design">A NOTE ABOUT THE CACHE&#39;S DESIGN</h2>
  52. <p>The npm cache is strictly a cache: it should not be relied upon as a persistent
  53. and reliable data store for package data. npm makes no guarantee that a
  54. previously-cached piece of data will be available later, and will automatically
  55. delete corrupted contents. The primary guarantee that the cache makes is that,
  56. if it does return data, that data will be exactly the data that was inserted.</p>
  57. <p>To run an offline verification of existing cache contents, use <code>npm cache
  58. verify</code>.</p>
  59. <h2 id="configuration">CONFIGURATION</h2>
  60. <h3 id="cache">cache</h3>
  61. <p>Default: <code>~/.npm</code> on Posix, or <code>%AppData%/npm-cache</code> on Windows.</p>
  62. <p>The root cache folder.</p>
  63. <h2 id="see-also">SEE ALSO</h2>
  64. <ul>
  65. <li><a href="../files/npm-folders.html">npm-folders(5)</a></li>
  66. <li><a href="../cli/npm-config.html">npm-config(1)</a></li>
  67. <li><a href="../misc/npm-config.html">npm-config(7)</a></li>
  68. <li><a href="../files/npmrc.html">npmrc(5)</a></li>
  69. <li><a href="../cli/npm-install.html">npm-install(1)</a></li>
  70. <li><a href="../cli/npm-publish.html">npm-publish(1)</a></li>
  71. <li><a href="../cli/npm-pack.html">npm-pack(1)</a></li>
  72. <li><a href="https://npm.im/cacache">https://npm.im/cacache</a></li>
  73. <li><a href="https://npm.im/pacote">https://npm.im/pacote</a></li>
  74. </ul>
  75. </div>
  76. <table border=0 cellspacing=0 cellpadding=0 id=npmlogo>
  77. <tr><td style="width:180px;height:10px;background:rgb(237,127,127)" colspan=18>&nbsp;</td></tr>
  78. <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>
  79. <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>
  80. <tr><td style="width:10px;height:10px;background:#fff" rowspan=2>&nbsp;</td></tr>
  81. <tr><td style="width:10px;height:10px;background:#fff">&nbsp;</td></tr>
  82. <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>
  83. <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>
  84. </table>
  85. <p id="footer">npm-cache &mdash; npm@6.4.1</p>