<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>nodejs | SDT 攻城獅區</title>
	<atom:link href="https://sdt.hameba.tw/tag/nodejs/feed/" rel="self" type="application/rss+xml" />
	<link>https://sdt.hameba.tw</link>
	<description>由Steven, Der, Ted 三位高級打字員所組成，是三位工程師(攻城獅)所維護的技術分享平台，或許偶爾會分享一些日常，有任何問題或是錯誤的部分，歡迎留言告訴我們！</description>
	<lastBuildDate>Sat, 22 Feb 2020 12:33:48 +0800</lastBuildDate>
	<language>zh-TW</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=5.3</generator>

<image>
	<url>https://sdt.hameba.tw/wp-content/uploads/2020/02/hameba_favicon-150x150.png</url>
	<title>nodejs | SDT 攻城獅區</title>
	<link>https://sdt.hameba.tw</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>Mac 安裝 NVM</title>
		<link>https://sdt.hameba.tw/530/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=mac-%25e5%25ae%2589%25e8%25a3%259d-nvm</link>
				<comments>https://sdt.hameba.tw/530/#respond</comments>
				<pubDate>Sat, 22 Feb 2020 11:56:11 +0000</pubDate>
		<dc:creator><![CDATA[Li Der]]></dc:creator>
				<category><![CDATA[Software]]></category>
		<category><![CDATA[nodejs]]></category>
		<category><![CDATA[nvm]]></category>

		<guid isPermaLink="false">https://sdt.hameba.tw/?p=530</guid>
				<description><![CDATA[<p>為了方便切換Node版本，我們可以安裝NVM(Node Version Manager)。 介紹一下如何在Ma &#8230; </p>
<p class="link-more"><a href="https://sdt.hameba.tw/530/" class="more-link">閱讀全文<span class="screen-reader-text">〈Mac 安裝 NVM〉</span></a></p>
The post <a href="https://sdt.hameba.tw/530/">Mac 安裝 NVM</a> first appeared on <a href="https://sdt.hameba.tw">SDT 攻城獅區</a>.]]></description>
								<content:encoded><![CDATA[<p>為了方便切換Node版本，我們可以安裝NVM(Node Version Manager)。</p>
<p>介紹一下如何在Mac上安裝這個工具。</p>
<p><span id="more-530"></span></p>
<p>官方有提到不支持 homebrew 的 nvm 安裝</p>
<blockquote><p>Homebrew installation is not supported. If you have issues with homebrew-installed <code>nvm</code>, please <code>brew uninstall</code> it, and install it using the instructions below, before filing an issue.</p></blockquote>
<p>我們這邊依照官方步驟來安裝(可以用 curl 或是 wget 下載)</p>
<ul>
<li>curl</li>
</ul>
<p></p><pre class="crayon-plain-tag">curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.35.2/install.sh | bash</pre><p></p>
<ul>
<li> wget</li>
</ul>
<p></p><pre class="crayon-plain-tag">wget -qO- https://raw.githubusercontent.com/nvm-sh/nvm/v0.35.2/install.sh | bash</pre><p>安裝好記得先把terminal關閉重開，或是手動重新生效bas_profile</p><pre class="crayon-plain-tag">source ~/.bash_profile</pre><p>確認一下是否成功</p><pre class="crayon-plain-tag">nvm --version</pre><p><img class="alignnone wp-image-532 size-full" src="https://sdt.hameba.tw/wp-content/uploads/2020/02/nvmVersion.png" alt="" width="607" height="68" srcset="https://sdt.hameba.tw/wp-content/uploads/2020/02/nvmVersion.png?v=1582372164 607w, https://sdt.hameba.tw/wp-content/uploads/2020/02/nvmVersion-300x34.png?v=1582372164 300w" sizes="(max-width: 607px) 100vw, 607px" /></p>
<p>接下來就可以安裝指令版本的Node了</p>
<p>&nbsp;</p>
<p>參考資料：</p>
<p><a href="https://github.com/nvm-sh/nvm">https://github.com/nvm-sh/nvm</a></p>The post <a href="https://sdt.hameba.tw/530/">Mac 安裝 NVM</a> first appeared on <a href="https://sdt.hameba.tw">SDT 攻城獅區</a>.]]></content:encoded>
							<wfw:commentRss>https://sdt.hameba.tw/530/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
							</item>
		<item>
		<title>Ubuntu 安裝 Nodejs</title>
		<link>https://sdt.hameba.tw/515/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=ubuntu-%25e5%25ae%2589%25e8%25a3%259d-nodejs</link>
				<comments>https://sdt.hameba.tw/515/#respond</comments>
				<pubDate>Wed, 12 Feb 2020 16:30:14 +0000</pubDate>
		<dc:creator><![CDATA[Li Der]]></dc:creator>
				<category><![CDATA[Software]]></category>
		<category><![CDATA[apt-get]]></category>
		<category><![CDATA[curl]]></category>
		<category><![CDATA[nodejs]]></category>
		<category><![CDATA[Ubuntu]]></category>

		<guid isPermaLink="false">https://sdt.hameba.tw/?p=515</guid>
				<description><![CDATA[<p>介紹 Ubuntu 18.04 環境下安裝Node.js， 會使用到的指令有 apt-get 以及 curl。 &#8230; </p>
<p class="link-more"><a href="https://sdt.hameba.tw/515/" class="more-link">閱讀全文<span class="screen-reader-text">〈Ubuntu 安裝 Nodejs〉</span></a></p>
The post <a href="https://sdt.hameba.tw/515/">Ubuntu 安裝 Nodejs</a> first appeared on <a href="https://sdt.hameba.tw">SDT 攻城獅區</a>.]]></description>
								<content:encoded><![CDATA[<p>介紹 Ubuntu 18.04 環境下安裝Node.js，</p>
<p>會使用到的指令有 apt-get 以及 curl。</p>
<p><span id="more-515"></span></p>
<p>如果是macOS或Windows的話，官方有提供安裝包 <a href="https://nodejs.org/en/download/">(官網)</a></p>
<p>先更新套件清單跟安裝curl</p><pre class="crayon-plain-tag">sudo apt-get update
sudo apt-get install curl</pre><p>接下來就可以來安裝Node.js (版本v13.x)</p><pre class="crayon-plain-tag">curl -sL https://deb.nodesource.com/setup_13.x | sudo -E bash -
sudo apt-get install -y nodejs</pre><p>安裝完成後，確認安裝版本。</p><pre class="crayon-plain-tag">node -v</pre><p>&nbsp;</p>
<p>參考資料</p>
<p><a href="https://github.com/nodesource/distributions">https://github.com/nodesource/distributions</a></p>The post <a href="https://sdt.hameba.tw/515/">Ubuntu 安裝 Nodejs</a> first appeared on <a href="https://sdt.hameba.tw">SDT 攻城獅區</a>.]]></content:encoded>
							<wfw:commentRss>https://sdt.hameba.tw/515/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
							</item>
	</channel>
</rss>
