国产 无码 综合区,色欲AV无码国产永久播放,无码天堂亚洲国产AV,国产日韩欧美女同一区二区

【Node.js】npm ERR! request to https://registry.npm.taobao.org/cnpm failed ... certificate has expired

這篇具有很好參考價值的文章主要介紹了【Node.js】npm ERR! request to https://registry.npm.taobao.org/cnpm failed ... certificate has expired。希望對大家有所幫助。如果存在錯誤或未考慮完全的地方,請大家不吝賜教,您也可以點擊"舉報違法"按鈕提交疑問。

問題描述

在使用NPM安裝包的過程中,出現(xiàn)以下錯誤:

npm ERR! code CERT_HAS_EXPIRED
npm ERR! errno CERT_HAS_EXPIRED
npm ERR! request to https://registry.npm.taobao.org/cnpm failed, reason: certificate has expired

request to failed, reason: certificate has expired,Node.js,node.js,npm,前端


原因分析

請求到的 https://registry.npm.taobao.org/cnpm 失敗,原因是證書已經(jīng)過期。

2024年1月22日,淘寶NPM鏡像站的域名 registry.npm.taobao.org 的SSL證書過期。


解決方案

  1. 清理NPM的緩存
npm cache clean --force
  1. 切換到新的NPM鏡像站
npm config set registry https://registry.npmmirror.com
  1. 檢查是否成功切換到新的鏡像站
npm config get registry

如果這個命令返回的是 https://registry.npmmirror.com,那么就說明已經(jīng)成功切換到了新的鏡像站。


參考資料

https://developer.aliyun.com/article/801527
https://juejin.cn/post/7327472360863924224文章來源地址http://www.zghlxwxcb.cn/news/detail-829327.html

到了這里,關(guān)于【Node.js】npm ERR! request to https://registry.npm.taobao.org/cnpm failed ... certificate has expired的文章就介紹完了。如果您還想了解更多內(nèi)容,請在右上角搜索TOY模板網(wǎng)以前的文章或繼續(xù)瀏覽下面的相關(guān)文章,希望大家以后多多支持TOY模板網(wǎng)!

本文來自互聯(lián)網(wǎng)用戶投稿,該文觀點僅代表作者本人,不代表本站立場。本站僅提供信息存儲空間服務(wù),不擁有所有權(quán),不承擔(dān)相關(guān)法律責(zé)任。如若轉(zhuǎn)載,請注明出處: 如若內(nèi)容造成侵權(quán)/違法違規(guī)/事實不符,請點擊違法舉報進(jìn)行投訴反饋,一經(jīng)查實,立即刪除!

領(lǐng)支付寶紅包贊助服務(wù)器費用

相關(guān)文章

  • yarn安裝依賴包報錯 An unexpected error occurred: “htps://registry.npm.taobao.org/vue-router: Invalid protoc

    yarn安裝依賴包報錯 An unexpected error occurred: “htps://registry.npm.taobao.org/vue-router: Invalid protoc

    yarn安裝依賴包報錯 這是因為網(wǎng)絡(luò)不好導(dǎo)致的下載依賴包請求超時報錯,更改下載地址即可。 步驟1.請求地址設(shè)置成淘寶源 步驟2.對node-sass鏡像源進(jìn)行設(shè)置 步驟3.重新下載 參考文章:https://blog.csdn.net/i_am_a_div/article/details/107935408

    2024年02月14日
    瀏覽(26)
  • 【npm報錯】解決invalid json response body at https://registry.npmjs.org

    【npm報錯】解決invalid json response body at https://registry.npmjs.org

    報錯信息: npm ERR! code FETCH_ERROR npm ERR! errno FETCH_ERROR npm ERR! invalid json response body at https://registry.npmjs.org/ @riophae%2fvue-treeselect r eason: Invalid response body while trying to fetch https://registry.npmjs.org /@riophae%2fvue-treeselect: 報錯原因 是node和npm的版本太高了,我當(dāng)時安裝的是最新版本,最新版

    2024年02月02日
    瀏覽(22)
  • npm ERR! code 1:解決Node.js包管理器安裝問題

    npm ERR! code 1:解決Node.js包管理器安裝問題

    在開發(fā)過程中,我們經(jīng)常需要使用各種Node.js包來擴(kuò)展我們的應(yīng)用程序功能。這些包通常通過npm(Node.js包管理器)進(jìn)行安裝和管理。然而,有時候我們可能會遇到一些關(guān)于npm的錯誤,其中最常見的是\\\"npm ERR! code 1\\\"錯誤。本文將詳細(xì)介紹如何解決這個問題,并提供一個詳細(xì)的實例

    2024年01月22日
    瀏覽(83)
  • npm ERR! node-sass@6.0.1 postinstall: `node scripts/build.js`

    npm ERR! node-sass@6.0.1 postinstall: `node scripts/build.js`

    vue npm install提示以下錯誤? 嘗試用下面的方式重新安裝弄得-saas,結(jié)果不起作用?。 npm config set sass_binary_site=https://npm.taobao.org/mirrors/node-sass npm install node-sass 這時考慮降級node版本,node.js從10.0-8.17版本。? 運(yùn)行npm install還是報同樣的錯誤 最后繼續(xù)查找解決方案,發(fā)現(xiàn)使用下面的

    2024年02月07日
    瀏覽(90)
  • Vue ui創(chuàng)建項目報錯:Failed to get response from https://registry.npmjs.org/vue-cli-version-marker

    報錯:Failed to get response from https://registry.npmjs.org/vue-cli-version-marker 找到C:UsersAdministrator(或用戶名)目錄下的.vuerc文件,修改其配置為 親測有效!

    2024年02月13日
    瀏覽(20)
  • 解決sass問題:npm ERR! node-sass@9.0.0 postinstall: `node scripts/build.js`

    解決sass問題:npm ERR! node-sass@9.0.0 postinstall: `node scripts/build.js`

    目錄 一、遇到問題 解決辦法 二、?再次遇到問題? 解決辦法? 題外話 1. 運(yùn)行這個項目的適合,遇到了沒有sass的問題 解決辦法 然后就用命令下載sass 2. 下載sass的時候又發(fā)現(xiàn)了一個這樣的問題 解決辦法? 檢查在這個錯誤之前有沒有其他的錯誤出現(xiàn) ,如果有就先去解決其他的

    2024年02月06日
    瀏覽(30)
  • npm install cnpm -g命令報錯:npm ERR! Error: EPERM: operation not permitted, rename ‘C:

    npm install cnpm -g命令報錯:npm ERR! Error: EPERM: operation not permitted, rename ‘C:

    完整報錯如下: C:Windowssystem32npm install cnpm -g npm WARN rollback Rolling back minipass@3.3.6 failed (this is probably harmless): EPERM: operation not permitted, lstat \\\'C:UsersQGLiuAppDataRoamingnpmnode_modulescnpmnode_modulesminipass-fetchnode_modules\\\' npm WARN notsup Unsupported engine for cnpm@9.4.0: wanted: {\\\"node\\\":\\\"= 14.18.0\\\"} (cu

    2024年04月10日
    瀏覽(27)
  • node中pnpm cnpm npm 的區(qū)別

    node中pnpm cnpm npm 的區(qū)別

    總結(jié)起來: npm 是基礎(chǔ)和廣泛使用的標(biāo)準(zhǔn)包管理器。 cnpm 是針對特定地區(qū)網(wǎng)絡(luò)問題提供的 npm 鏡像服務(wù)客戶端,專注于提升下載速度。 pnpm 是一個創(chuàng)新的包管理器,關(guān)注于資源優(yōu)化、安裝速度提升以及解決依賴沖突問題。

    2024年01月19日
    瀏覽(29)
  • 深入解析npm ERR! cwebp-bin@6.1.2 postinstall: `node lib/install.js`錯誤及解決方案

    在開發(fā)過程中,我們經(jīng)常會遇到各種各樣的錯誤。其中,npm ERR! cwebp-bin@6.1.2 postinstall: node lib/install.js 是一個比較常見的錯誤。本文將詳細(xì)介紹這個錯誤的產(chǎn)生原因以及解決方案。 首先,我們需要了解這個錯誤的含義。npm ERR! cwebp-bin@6.1.2 postinstall: node lib/install.js 表示在安裝

    2024年02月02日
    瀏覽(182)
  • “Failed to scrape node“ err=“Get \“https://:10250/metrics/resource\“: x509: cannot validate故障排除

    “Failed to scrape node“ err=“Get \“https://:10250/metrics/resource\“: x509: cannot validate故障排除

    起因?qū)嶒灜h(huán)境的metrics-server狀態(tài)一直是0/1 Running 用kubectl logs -n kube-system metrics-server-67db5c9b4f-kmflf查看容器時,出現(xiàn)以下報錯. kubelet 的10250端口使用的是https協(xié)議,連接需要驗證tls證書. Deployment的spec.template.spec.containers.args 大概140行左右

    2024年02月14日
    瀏覽(20)

覺得文章有用就打賞一下文章作者

支付寶掃一掃打賞

博客贊助

微信掃一掃打賞

請作者喝杯咖啡吧~博客贊助

支付寶掃一掃領(lǐng)取紅包,優(yōu)惠每天領(lǐng)

二維碼1

領(lǐng)取紅包

二維碼2

領(lǐng)紅包