<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
    <channel>
        <title>镜像站 on 北斗的天地</title>
        <link>https://www.imcry.vip/tags/%E9%95%9C%E5%83%8F%E7%AB%99.html</link>
        <description>Recent content in 镜像站 on 北斗的天地</description>
        <generator>Hugo -- gohugo.io</generator>
        <language>zh</language>
        <lastBuildDate>Sun, 21 Sep 2025 03:41:00 +0800</lastBuildDate><atom:link href="https://www.imcry.vip/tags/%E9%95%9C%E5%83%8F%E7%AB%99/index.xml" rel="self" type="application/rss+xml" /><item>
            <title>修改npm镜像地址</title>
            <link>https://www.imcry.vip/post/330.html</link>
            <pubDate>Sun, 21 Sep 2025 03:41:00 +0800</pubDate>
            <guid>https://www.imcry.vip/post/330.html</guid>
            <description>&lt;p&gt;切换至&lt;code&gt;npmmirror&lt;/code&gt;镜像&lt;/p&gt;&#xA;&lt;pre tabindex=&#34;0&#34;&gt;&lt;code class=&#34;language-npm&#34; data-lang=&#34;npm&#34;&gt;npm config set registry https://registry.npmmirror.com&#xA;&lt;/code&gt;&lt;/pre&gt;&lt;h1 id=&#34;清除-npm-缓存&#34;&gt;&lt;a href=&#34;#%e6%b8%85%e9%99%a4-npm-%e7%bc%93%e5%ad%98&#34; class=&#34;header-anchor&#34;&gt;&lt;/a&gt;清除 npm 缓存&#xA;&lt;/h1&gt;&lt;p&gt;强制清除 npm 的本地缓存，然后再重新安装依赖，解决因缓存导致的证书验证问题&lt;/p&gt;&#xA;&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;npm cache clean --force&#xA;&lt;/code&gt;&lt;/pre&gt;&lt;h1 id=&#34;更新-npm&#34;&gt;&lt;a href=&#34;#%e6%9b%b4%e6%96%b0-npm&#34; class=&#34;header-anchor&#34;&gt;&lt;/a&gt;更新 npm&#xA;&lt;/h1&gt;&lt;p&gt;将 npm 更新到最新版本，然后再尝试安装&lt;/p&gt;&#xA;&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;npm install -g npm&#xA;&lt;/code&gt;&lt;/pre&gt;</description>
        </item></channel>
</rss>
