<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[ubuntu 18.04安装nodejs]]></title><description><![CDATA[<p dir="auto">一，安装ubuntu 18.04 默认版本nodejs 8.10.0<br />
sudo apt update<br />
sudo apt install nodejs<br />
sudo apt install npm<br />
nodejs -v</p>
<p dir="auto">二，安装最新版本</p>
<pre><code>curl -sL https://deb.nodesource.com/setup_10.x -o nodesource_setup.sh
sudo bash nodesource_setup.sh
sudo apt install nodejs
</code></pre>
<p dir="auto">The nodejs package contains the nodejs binary as well as npm, so you don’t need to install npm separately.<br />
In order for some npm packages to work</p>
<pre><code>sudo apt install build-essential
</code></pre>
<p dir="auto">三，删除nodejs<br />
sudo apt remove nodejs<br />
sudo apt purge nodejs //彻底删除　包括配置文件<br />
sudo apt autoremove  //清除依赖</p>
<p dir="auto">1.参考<br />
<a href="https://www.digitalocean.com/community/tutorials/how-to-install-node-js-on-ubuntu-18-04" rel="nofollow ugc">https://www.digitalocean.com/community/tutorials/how-to-install-node-js-on-ubuntu-18-04</a></p>
]]></description><link>http://an.forum.genostack.com/topic/210/ubuntu-18-04安装nodejs</link><generator>RSS for Node</generator><lastBuildDate>Sat, 13 Jun 2026 10:42:20 GMT</lastBuildDate><atom:link href="http://an.forum.genostack.com/topic/210.rss" rel="self" type="application/rss+xml"/><pubDate>Sun, 07 Feb 2021 07:11:19 GMT</pubDate><ttl>60</ttl></channel></rss>