{"componentChunkName":"component---src-templates-markdown-js","path":"/updating_node","result":{"data":{"markdownRemark":{"html":"<h1>first page!</h1>\n<ol>\n<li>\n<p>Open your console and check your Node.js version.</p>\n<pre><code>$ node -v\nv x.x.x```\n</code></pre>\n</li>\n<li>\n<p>Install n package using npm if you do not have it installed yet.</p>\n<pre><code>$ sudo npm install -g n```\n</code></pre>\n</li>\n<li>\n<p>Then, you can update your Node.js to the version you want.</p>\n<pre><code>(Use this command to install the stable node release.)\n$ sudo n stable(Use this command to install/update the latest node release.)\n$ sudo n latest(Use this command to install/update the latest LTS node release.)\n$ sudo n lts```\n</code></pre>\n</li>\n<li>\n<p>That’s it! You can verify that the update is successful by checking your Node.js version again.</p>\n<pre><code>$ node -v\nv x.x.x```\n</code></pre>\n</li>\n</ol>","frontmatter":{"description":"Updating out of date node versions easily","slug":"/updating_node","title":"How to update node","date":"12-19-2020"}}},"pageContext":{"title":"How to update node","description":"Updating out of date node versions easily","slug":"/updating_node"}},"staticQueryHashes":[]}