Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<h2>2018 <em>Solution Without</em> <code>sudo</code>!</h2> <p>The Current/Stable "LTS" version of node is <strong>8.11.3</strong> (<strong><em>2018-06-12</em></strong>) <em>see</em>: <a href="https://nodejs.org" rel="noreferrer"><strong><em>nodejs.org</em></strong></a> for <em>latest</em>.</p> <h2>Step 1 - <em>Get NVM</em> (Node Version Manger)</h2> <p><code>curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.33.11/install.sh | bash</code></p> <blockquote> <p>If you're <em>curious</em> about the installation command <em>read</em> the <a href="https://github.com/creationix/nvm/blob/master/nvm.sh" rel="noreferrer">source code</a><br> ... its been <em>reviewed</em> by <em>several</em> <a href="https://nodesecurity.io/" rel="noreferrer">security experts</a></p> </blockquote> <h2>Step 2 - <em>Install</em> the version of node.js you need</h2> <p>Once you've got <strong>NVM</strong> you can install a <em>specific</em> version of Node.js using the nvm command:</p> <p><code>nvm install v8.11.3</code></p> <p><strong>Note</strong>: you may need to close &amp; re-open your terminal window for <code>nvm</code> command to be available.</p> <p>You should expect to see something like this in your terminal:</p> <p><code>Now using node v8.11.3</code></p> <h2>Step 3 - <em>Enjoy</em> the rest of your day!</h2> <p><em>Yes</em>, it's <em>that easy</em> and didn't require <code>sudo</code>!<br> Now <strong><em>please Upvote</em></strong> this (<em>so others can avoid <code>sudo</code>-installing things!</em>)<br> and have a <em>lovely day</em> writing node.js code!</p> <blockquote> <p><em>Microsoft <strong>Windows</strong> User</em>? <em>See</em>: <a href="https://github.com/coreybutler/nvm-windows" rel="noreferrer">https://github.com/coreybutler/nvm-windows</a></p> </blockquote> <h2> tl;dr</h2> <p>Review of the node mailing list indicates that using <strong>NVM</strong> (<em>Node Version Manager</em>) is the <em>preferred</em> way to manage your nodejs versioning/upgrading. see: <a href="https://github.com/creationix/nvm" rel="noreferrer">github.com/creationix/nvm</a></p> <p><strong>NVM</strong> by <a href="https://github.com/creationix" rel="noreferrer"><em>Tim Caswell</em></a> (<em>&amp; friends</em>) is "<em>better</em>" than <strong>N</strong> from <em>visionmedia</em> (TJ Holowaychuk) <a href="https://github.com/visionmedia/n" rel="noreferrer">github.com/visionmedia/n</a> because the <em>verbose</em> commands mean is <em>much</em> easier to keep track of what you are doing in your Terminal/SSH Log. Its also <em>faster</em>, <strong><em>saves kittens</em></strong> by <strong><em>not requiring</em></strong> <code>sudo</code> and is used by the team at <a href="https://liftsecurity.io/" rel="noreferrer"><strong>liftsecurity.io</strong></a> the node.js <strong><em>security experts</em></strong>!</p> <p>Also worth noting: <strong>NVM</strong> has almost <em>three times</em> as many GitHub Stars as <em>N</em> (<strong><em>22896</em></strong> <em>vs</em> <strong><em>8040</em></strong>). That's <em>usually</em> - but not always - a sign of a better module... feel free to correct if you have <em>evidence</em> of otherwise ...</p> <p>P.S. this may be a dupe of <a href="https://stackoverflow.com/questions/5123533/how-can-i-uninstall-or-upgrade-my-old-node-js-version/12571148">How can I uninstall or upgrade my old node.js version?</a></p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload