<?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>Node.js &#8211; Bubblog</title>
	<atom:link href="https://blog.yangyuanping.com/tag/node-js/feed/" rel="self" type="application/rss+xml" />
	<link>https://blog.yangyuanping.com</link>
	<description>nullable reference types</description>
	<lastBuildDate>Fri, 19 Dec 2025 17:24:50 +0000</lastBuildDate>
	<language>zh-Hans</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.9.1</generator>

<image>
	<url>https://blog.yangyuanping.com/wp-content/uploads/2025/11/cropped-patrick_log_logo_251121-2-32x32.png</url>
	<title>Node.js &#8211; Bubblog</title>
	<link>https://blog.yangyuanping.com</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>Mac OS X uninstall script for packaged install of node.js</title>
		<link>https://blog.yangyuanping.com/mac-os-x-uninstall-script-for-packaged-install-of-node-js/</link>
		
		<dc:creator><![CDATA[peny911]]></dc:creator>
		<pubDate>Mon, 24 Nov 2025 18:49:24 +0000</pubDate>
				<category><![CDATA[未分类]]></category>
		<category><![CDATA[Mac]]></category>
		<category><![CDATA[Node.js]]></category>
		<guid isPermaLink="false">https://blog.yangyuanping.com/?p=1033</guid>

					<description><![CDATA[To run this, you can try: curl -ksO https://gist.github [&#8230;]]]></description>
										<content:encoded><![CDATA[<p>To run this, you can try:</p>
<pre><code class="language-bash">curl -ksO https://gist.githubusercontent.com/nicerobot/2697848/raw/uninstall-node.sh
chmod +x ./uninstall-node.sh
./uninstall-node.sh
rm uninstall-node.sh</code></pre>
<p><a href="https://gist.github.com/nicerobot/2697848#file-uninstall-node-sh" title="uninstall-node.sh">uninstall-node.sh</a></p>
<pre><code class="language-bash">#!/bin/sh
(( ${#} &gt; 0 )) || {
  echo 'DISCLAIMER: USE THIS SCRIPT AT YOUR OWN RISK!'
  echo 'THE AUTHOR TAKES NO RESPONSIBILITY FOR THE RESULTS OF THIS SCRIPT.'
  echo "Disclaimer aside, this worked for the author, for what that's worth."
  echo 'Press Control-C to quit now.'
  read
  echo 'Re-running the script with sudo.'
  echo 'You may be prompted for a password.'
  sudo ${0} sudo
  exit $?
}
# This will need to be executed as an Admin (maybe just use sudo).

for bom in org.nodejs.node.pkg.bom org.nodejs.pkg.bom; do

  receipt=/var/db/receipts/${bom}
  [ -e ${receipt} ] &amp;&amp; {
    # Loop through all the files in the bom.
    lsbom -f -l -s -pf ${receipt} \
    | while read i; do
      # Remove each file listed in the bom.
      rm -v /usr/local/${i#/usr/local/}
    done
  }

done

# Remove directories related to node.js.
rm -vrf /usr/local/lib/node \
  /usr/local/lib/node_modules \
  /var/db/receipts/org.nodejs.*

exit 0</code></pre>
<blockquote>
<p><a href="https://gist.github.com/nicerobot/2697848">https://gist.github.com/nicerobot/2697848</a></p>
</blockquote>
]]></content:encoded>
					
		
		
			</item>
	</channel>
</rss>
