<?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>npm | SDT 攻城獅區</title>
	<atom:link href="https://sdt.hameba.tw/tag/npm/feed/" rel="self" type="application/rss+xml" />
	<link>https://sdt.hameba.tw</link>
	<description>由Steven, Der, Ted 三位高級打字員所組成，是三位工程師(攻城獅)所維護的技術分享平台，或許偶爾會分享一些日常，有任何問題或是錯誤的部分，歡迎留言告訴我們！</description>
	<lastBuildDate>Sun, 23 Feb 2020 13:32:11 +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>npm | SDT 攻城獅區</title>
	<link>https://sdt.hameba.tw</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>NPM 檢查過期套件模組</title>
		<link>https://sdt.hameba.tw/542/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=npm-%25e6%25aa%25a2%25e6%259f%25a5%25e9%2581%258e%25e6%259c%259f%25e5%25a5%2597%25e4%25bb%25b6%25e6%25a8%25a1%25e7%25b5%2584</link>
				<comments>https://sdt.hameba.tw/542/#respond</comments>
				<pubDate>Sun, 23 Feb 2020 13:32:11 +0000</pubDate>
		<dc:creator><![CDATA[Ted]]></dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[npm]]></category>

		<guid isPermaLink="false">https://sdt.hameba.tw/?p=542</guid>
				<description><![CDATA[<p>對於前端開發者來說，相信 NPM (Node Package Manager) 大家一定都不陌生，它是一個線上 &#8230; </p>
<p class="link-more"><a href="https://sdt.hameba.tw/542/" class="more-link">閱讀全文<span class="screen-reader-text">〈NPM 檢查過期套件模組〉</span></a></p>
The post <a href="https://sdt.hameba.tw/542/">NPM 檢查過期套件模組</a> first appeared on <a href="https://sdt.hameba.tw">SDT 攻城獅區</a>.]]></description>
								<content:encoded><![CDATA[<p>對於前端開發者來說，相信 NPM (Node Package Manager) 大家一定都不陌生，它是一個線上 JavaScript 套件庫，使用者可以根據自己的需求，下載套件來使用。</p>
<p><span id="more-542"></span></p>
<p>線上的套件，會因為各種因素，而有新版本的更新，要如何知道自己現在用的套件有沒有過期？是否有更新的版本，這時候就可以用以下指令來確認啦。</p><pre class="crayon-plain-tag">// 檢查專案中，使用的 NPM 套件是否過期
npm outdated</pre><p>他會列出當前你這專案中使用的套件中，有沒有新版本的更新，如果有會列出你當前這個套件的的版本號 (Current)、滿足 package.json 中指定的 semver 範圍的軟件包的最高版本(Wanted)、此套件最新的版本號 ( Latest )，及這個專個套件的所在的專案範圍 (Location)，如果沒有，就不會列出。</p>
<p>參考文章 <a href="https://docs.npmjs.com/cli-commands/outdated.html">https://docs.npmjs.com/cli-commands/outdated.html</a></p>
<div id="gtx-trans">
<div class="gtx-trans-icon"></div>
</div>The post <a href="https://sdt.hameba.tw/542/">NPM 檢查過期套件模組</a> first appeared on <a href="https://sdt.hameba.tw">SDT 攻城獅區</a>.]]></content:encoded>
							<wfw:commentRss>https://sdt.hameba.tw/542/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
							</item>
		<item>
		<title>npm 與 yarn 子目錄執行script</title>
		<link>https://sdt.hameba.tw/373/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=npm-%25e8%2588%2587-yarn-%25e5%25ad%2590%25e7%259b%25ae%25e9%258c%2584%25e5%259f%25b7%25e8%25a1%258cscript</link>
				<comments>https://sdt.hameba.tw/373/#respond</comments>
				<pubDate>Wed, 25 Dec 2019 01:15:30 +0000</pubDate>
		<dc:creator><![CDATA[Hsu Steven]]></dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[cwd]]></category>
		<category><![CDATA[install]]></category>
		<category><![CDATA[npm]]></category>
		<category><![CDATA[prefix]]></category>
		<category><![CDATA[yarn]]></category>

		<guid isPermaLink="false">https://sdt.hameba.tw/?p=373</guid>
				<description><![CDATA[<p>設計node.js架構時，主目錄可以輕鬆使用npm install， 但對於client 目錄裡面可能是另外的 &#8230; </p>
<p class="link-more"><a href="https://sdt.hameba.tw/373/" class="more-link">閱讀全文<span class="screen-reader-text">〈npm 與 yarn 子目錄執行script〉</span></a></p>
The post <a href="https://sdt.hameba.tw/373/">npm 與 yarn 子目錄執行script</a> first appeared on <a href="https://sdt.hameba.tw">SDT 攻城獅區</a>.]]></description>
								<content:encoded><![CDATA[<p>設計node.js架構時，主目錄可以輕鬆使用npm install，</p>
<p>但對於client 目錄裡面可能是另外的前端專案就需要對子目錄執行script</p>
<p><span id="more-373"></span></p><pre class="crayon-plain-tag"># npm 子目錄執行方式
$ nodemon index.js | npm run start --prefix client

# yarn 子目錄執行方式
$ yarn install --cwd client &amp;&amp; yarn install</pre><p>額外特別注意是 script 的名稱 也不要命名成install，寫成 install:&#8221;yarn install &#8211;cwd client &amp;&amp; yarn install&#8221;</p>
<p>結果發生鬼打牆事件 install 一直出現success update&#8230;.</p>
<div id="gtx-trans">
<div class="gtx-trans-icon"></div>
</div>The post <a href="https://sdt.hameba.tw/373/">npm 與 yarn 子目錄執行script</a> first appeared on <a href="https://sdt.hameba.tw">SDT 攻城獅區</a>.]]></content:encoded>
							<wfw:commentRss>https://sdt.hameba.tw/373/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
							</item>
	</channel>
</rss>
