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.

122 lines
8.6 KiB

  1. <!doctype html>
  2. <html>
  3. <title>README</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/README.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>a JavaScript package manager</p>
  11. <p><a href="https://travis-ci.org/npm/cli"><img src="https://img.shields.io/travis/npm/cli/latest.svg" alt="Build Status"></a></p>
  12. <h2 id="synopsis">SYNOPSIS</h2>
  13. <p>This is just enough info to get you up and running.</p>
  14. <p>Much more info will be available via <code>npm help</code> once it&#39;s installed.</p>
  15. <h2 id="important">IMPORTANT</h2>
  16. <p><strong>You need node v6 or higher to run this program.</strong></p>
  17. <p>To install an old <strong>and unsupported</strong> version of npm that works on node v5
  18. and prior, clone the git repo and dig through the old tags and branches.</p>
  19. <p><strong>npm is configured to use npm, Inc.&#39;s public registry at
  20. <a href="https://registry.npmjs.org">https://registry.npmjs.org</a> by default.</strong> Use of the npm public registry
  21. is subject to terms of use available at <a href="https://www.npmjs.com/policies/terms">https://www.npmjs.com/policies/terms</a>.</p>
  22. <p>You can configure npm to use any compatible registry you
  23. like, and even run your own registry. Check out the <a href="https://docs.npmjs.com/misc/registry">doc on
  24. registries</a>.</p>
  25. <h2 id="super-easy-install">Super Easy Install</h2>
  26. <p>npm is bundled with <a href="https://nodejs.org/en/download/">node</a>.</p>
  27. <h3 id="windows-computers">Windows Computers</h3>
  28. <p><a href="https://nodejs.org/en/download/">Get the MSI</a>. npm is in it.</p>
  29. <h3 id="apple-macintosh-computers">Apple Macintosh Computers</h3>
  30. <p><a href="https://nodejs.org/en/download/">Get the pkg</a>. npm is in it.</p>
  31. <h3 id="other-sorts-of-unices">Other Sorts of Unices</h3>
  32. <p>Run <code>make install</code>. npm will be installed with node.</p>
  33. <p>If you want a more fancy pants install (a different version, customized
  34. paths, etc.) then read on.</p>
  35. <h2 id="fancy-install-unix-">Fancy Install (Unix)</h2>
  36. <p>There&#39;s a pretty robust install script at
  37. <a href="https://www.npmjs.com/install.sh">https://www.npmjs.com/install.sh</a>. You can download that and run it.</p>
  38. <p>Here&#39;s an example using curl:</p>
  39. <pre><code class="language-sh">curl -L https://www.npmjs.com/install.sh | sh</code></pre>
  40. <h3 id="slightly-fancier">Slightly Fancier</h3>
  41. <p>You can set any npm configuration params with that script:</p>
  42. <pre><code class="language-sh">npm_config_prefix=/some/path sh install.sh</code></pre>
  43. <p>Or, you can run it in uber-debuggery mode:</p>
  44. <pre><code class="language-sh">npm_debug=1 sh install.sh</code></pre>
  45. <h3 id="even-fancier">Even Fancier</h3>
  46. <p>Get the code with git. Use <code>make</code> to build the docs and do other stuff.
  47. If you plan on hacking on npm, <code>make link</code> is your friend.</p>
  48. <p>If you&#39;ve got the npm source code, you can also semi-permanently set
  49. arbitrary config keys using the <code>./configure --key=val ...</code>, and then
  50. run npm commands by doing <code>node bin/npm-cli.js &lt;command&gt; &lt;args&gt;</code>. (This is helpful
  51. for testing, or running stuff without actually installing npm itself.)</p>
  52. <h2 id="windows-install-or-upgrade">Windows Install or Upgrade</h2>
  53. <p>Many improvements for Windows users have been made in npm 3 - you will have a better
  54. experience if you run a recent version of npm. To upgrade, either use <a href="https://github.com/felixrieseberg/npm-windows-upgrade">Microsoft&#39;s
  55. upgrade tool</a>,
  56. <a href="https://nodejs.org/en/download/">download a new version of Node</a>,
  57. or follow the Windows upgrade instructions in the
  58. <a href="https://npm.community/t/installing-upgrading-npm/251/2">Installing/upgrading npm</a> post.</p>
  59. <p>If that&#39;s not fancy enough for you, then you can fetch the code with
  60. git, and mess with it directly.</p>
  61. <h2 id="installing-on-cygwin">Installing on Cygwin</h2>
  62. <p>No.</p>
  63. <h2 id="uninstalling">Uninstalling</h2>
  64. <p>So sad to see you go.</p>
  65. <pre><code class="language-sh">sudo npm uninstall npm -g</code></pre>
  66. <p>Or, if that fails,</p>
  67. <pre><code class="language-sh">sudo make uninstall</code></pre>
  68. <h2 id="more-severe-uninstalling">More Severe Uninstalling</h2>
  69. <p>Usually, the above instructions are sufficient. That will remove
  70. npm, but leave behind anything you&#39;ve installed.</p>
  71. <p>If you would like to remove all the packages that you have installed,
  72. then you can use the <code>npm ls</code> command to find them, and then <code>npm rm</code> to
  73. remove them.</p>
  74. <p>To remove cruft left behind by npm 0.x, you can use the included
  75. <code>clean-old.sh</code> script file. You can run it conveniently like this:</p>
  76. <pre><code class="language-sh">npm explore npm -g -- sh scripts/clean-old.sh</code></pre>
  77. <p>npm uses two configuration files, one for per-user configs, and another
  78. for global (every-user) configs. You can view them by doing:</p>
  79. <pre><code class="language-sh">npm config get userconfig # defaults to ~/.npmrc
  80. npm config get globalconfig # defaults to /usr/local/etc/npmrc</code></pre>
  81. <p>Uninstalling npm does not remove configuration files by default. You
  82. must remove them yourself manually if you want them gone. Note that
  83. this means that future npm installs will not remember the settings that
  84. you have chosen.</p>
  85. <h2 id="more-docs">More Docs</h2>
  86. <p>Check out the <a href="https://docs.npmjs.com/">docs</a>.</p>
  87. <p>You can use the <code>npm help</code> command to read any of them.</p>
  88. <p>If you&#39;re a developer, and you want to use npm to publish your program,
  89. you should <a href="https://docs.npmjs.com/misc/developers">read this</a>.</p>
  90. <h2 id="bugs">BUGS</h2>
  91. <p>When you find issues, please report them:</p>
  92. <ul>
  93. <li>web:
  94. <a href="https://npm.community/c/bugs">https://npm.community/c/bugs</a></li>
  95. </ul>
  96. <p>Be sure to include <em>all</em> of the output from the npm command that didn&#39;t work
  97. as expected. The <code>npm-debug.log</code> file is also helpful to provide.</p>
  98. <p>You can also find npm people in <code>#npm</code> on <a href="https://package.community/">https://package.community/</a> or
  99. <a href="https://twitter.com/npm_support">on Twitter</a>. Whoever responds will no
  100. doubt tell you to put the output in a gist or email.</p>
  101. <h2 id="see-also">SEE ALSO</h2>
  102. <ul>
  103. <li><a href="cli/npm.html">npm(1)</a></li>
  104. <li><a href="cli/npm-help.html">npm-help(1)</a></li>
  105. <li><a href="misc/npm-index.html">npm-index(7)</a></li>
  106. </ul>
  107. </div>
  108. <table border=0 cellspacing=0 cellpadding=0 id=npmlogo>
  109. <tr><td style="width:180px;height:10px;background:rgb(237,127,127)" colspan=18>&nbsp;</td></tr>
  110. <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>
  111. <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>
  112. <tr><td style="width:10px;height:10px;background:#fff" rowspan=2>&nbsp;</td></tr>
  113. <tr><td style="width:10px;height:10px;background:#fff">&nbsp;</td></tr>
  114. <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>
  115. <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>
  116. </table>
  117. <p id="footer"><a href="../doc/README.html">README</a> &mdash; npm@6.4.1</p>