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

【報(bào)錯(cuò)】npm ERR! ERESOLVE could not resolve、certificate has expired

這篇具有很好參考價(jià)值的文章主要介紹了【報(bào)錯(cuò)】npm ERR! ERESOLVE could not resolve、certificate has expired。希望對(duì)大家有所幫助。如果存在錯(cuò)誤或未考慮完全的地方,請(qǐng)大家不吝賜教,您也可以點(diǎn)擊"舉報(bào)違法"按鈕提交疑問。

前情提要

使用npm淘寶鏡像 https://registry.npm.taobao.org
年前創(chuàng)建的vue3項(xiàng)目npm install 完后沒有使用ui寫了點(diǎn)雜七雜八的東西,年后看到一篇文章有點(diǎn)興趣,掏出來準(zhǔn)備試一下,本打算安裝element-plus 寫起來方便點(diǎn)npm install element-plus --save ,結(jié)果就運(yùn)行后就報(bào)錯(cuò)

npm ERR! code ERESOLVE
npm ERR! ERESOLVE could not resolve
npm ERR! 
npm ERR! While resolving: @vue/eslint-config-standard@6.1.0
npm ERR! Found: eslint-plugin-vue@8.7.1
npm ERR! node_modules/eslint-plugin-vue
npm ERR!   dev eslint-plugin-vue@"^8.0.3" from the root project
npm ERR! 
npm ERR! Could not resolve dependency:
npm ERR! peer eslint-plugin-vue@"^7.0.0" from @vue/eslint-config-standard@6.1.0
npm ERR! node_modules/@vue/eslint-config-standard
npm ERR!   dev @vue/eslint-config-standard@"^6.1.0" from the root project
npm ERR! 
npm ERR! Conflicting peer dependency: eslint-plugin-vue@7.20.0
npm ERR! node_modules/eslint-plugin-vue
npm ERR!   peer eslint-plugin-vue@"^7.0.0" from @vue/eslint-config-standard@6.1.0
npm ERR!   node_modules/@vue/eslint-config-standard
npm ERR!     dev @vue/eslint-config-standard@"^6.1.0" from the root project
npm ERR! 
npm ERR! Fix the upstream dependency conflict, or retry
npm ERR! this command with --force or --legacy-peer-deps
npm ERR! to accept an incorrect (and potentially broken) dependency resolution.
npm ERR! 

看這一堆眼花繚亂的,其實(shí)最有用的就是后幾行,讓我們?cè)谠久钌显黾?--force or --legacy-peer-deps

npm ERR! Fix the upstream dependency conflict, or retry
npm ERR! this command with --force or --legacy-peer-deps
npm ERR! to accept an incorrect (and potentially broken) dependency resolution.

也就是npm install element-plus --save --force 跑起來又又報(bào)錯(cuò)了=.=,好好好,看看報(bào)錯(cuò)信息

npm WARN using --force Recommended protections disabled.
npm WARN ERESOLVE overriding peer dependency
npm WARN While resolving: @vue/eslint-config-standard@6.1.0
npm WARN Found: eslint-plugin-vue@8.7.1
npm WARN node_modules/eslint-plugin-vue
npm WARN   dev eslint-plugin-vue@"^8.0.3" from the root project
npm WARN 
npm WARN Could not resolve dependency:
npm WARN peer eslint-plugin-vue@"^7.0.0" from @vue/eslint-config-standard@6.1.0
npm WARN node_modules/@vue/eslint-config-standard
npm WARN   dev @vue/eslint-config-standard@"^6.1.0" from the root project
npm WARN 
npm WARN Conflicting peer dependency: eslint-plugin-vue@7.20.0
npm WARN node_modules/eslint-plugin-vue
npm WARN   peer eslint-plugin-vue@"^7.0.0" from @vue/eslint-config-standard@6.1.0
npm WARN   node_modules/@vue/eslint-config-standard
npm WARN     dev @vue/eslint-config-standard@"^6.1.0" from the root project
npm WARN ERESOLVE overriding peer dependency
npm WARN While resolving: friendly-errors-webpack-plugin@1.7.0
npm WARN Found: webpack@5.89.0
npm WARN node_modules/webpack
npm WARN   peer webpack@"^4.0.0 || ^5.0.0" from @soda/friendly-errors-webpack-plugin@1.8.1
npm WARN   node_modules/@soda/friendly-errors-webpack-plugin
npm WARN     @soda/friendly-errors-webpack-plugin@"^1.8.0" from @vue/cli-service@5.0.8
npm WARN     node_modules/@vue/cli-service
npm WARN   20 more (@vue/cli-plugin-babel, @vue/cli-plugin-eslint, ...)
npm WARN 
npm WARN Could not resolve dependency:
npm WARN peer webpack@"^2.0.0 || ^3.0.0 || ^4.0.0" from friendly-errors-webpack-plugin@1.7.0
npm WARN node_modules/friendly-errors-webpack-plugin
npm WARN   friendly-errors-webpack-plugin@"^1.7.0" from vue-cli-plugin-electron-builder@2.1.1
npm WARN   node_modules/vue-cli-plugin-electron-builder
npm WARN 
npm WARN Conflicting peer dependency: webpack@4.47.0
npm WARN node_modules/webpack
npm WARN   peer webpack@"^2.0.0 || ^3.0.0 || ^4.0.0" from friendly-errors-webpack-plugin@1.7.0
npm WARN   node_modules/friendly-errors-webpack-plugin
npm WARN     friendly-errors-webpack-plugin@"^1.7.0" from vue-cli-plugin-electron-builder@2.1.1
npm WARN     node_modules/vue-cli-plugin-electron-builder
npm ERR! code CERT_HAS_EXPIRED
npm ERR! errno CERT_HAS_EXPIRED
npm ERR! request to https://registry.npm.taobao.org/element-plus failed, reason: certificate has expired

上面都是WARN不用管,重點(diǎn)看ERR,他說xxx https://registry.npm.taobao.org/element-plus failed(失敗)
這個(gè)地址很眼熟啊,npm taobao這不就是淘寶鏡像嗎,reason:原因 certificate has expired 證書已過期,好家伙,搞了半天淘寶鏡像過期了

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

解決

找到根源,就好解決了, 切換npm鏡像源

// 先清除緩存
npm cache clean --force
npm config set registry npm鏡像源

開始百度“淘寶鏡像過期”,找到一篇一個(gè)月前熱氣騰騰的救命文章 npm 淘寶鏡像正式到期,趕緊更新!

換源

npm config set registry https://registry.npmmirror.com

重新執(zhí)行,安裝成功??文章來源地址http://www.zghlxwxcb.cn/news/detail-835668.html

npm install element-plus --save --force      

到了這里,關(guān)于【報(bào)錯(cuò)】npm ERR! ERESOLVE could not resolve、certificate has expired的文章就介紹完了。如果您還想了解更多內(nèi)容,請(qǐng)?jiān)谟疑辖撬阉鱐OY模板網(wǎng)以前的文章或繼續(xù)瀏覽下面的相關(guān)文章,希望大家以后多多支持TOY模板網(wǎng)!

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

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

相關(guān)文章

  • npm 執(zhí)行命令時(shí)報(bào)錯(cuò)npm ERR! code ERESOLVE npm ERR! ERESOLVE could not resolve

    npm 執(zhí)行命令時(shí)報(bào)錯(cuò)npm ERR! code ERESOLVE npm ERR! ERESOLVE could not resolve

    npm ERR! code ERESOLVE npm ERR! ERESOLVE could not resolve npm ERR! npm ERR! While resolving: @vue-office/docx@1.3.0 npm ERR! Found: vue-demi@0.14.6 npm ERR! node_modules/vue-demi npm ERR! vue-demi@“^0.14.6” from the root project npm ERR! vue-demi@“*” from @vueuse/core@9.13.0 npm ERR! node_modules/@vueuse/core npm ERR! @vueuse/core@“^9.1.0” from

    2024年02月07日
    瀏覽(96)
  • npm i時(shí)報(bào)錯(cuò)npm ERR! code ERESOLVE npm ERR! ERESOLVE could not resolve npm ERR! npm ERR! While resolving

    使用npm或yarn安裝第三方包。 使用npm命令和yarn命令混合使用會(huì)出現(xiàn)安裝包沖突。 如果將 yarn.lock 和 package.lock 文件放在一起,有時(shí)會(huì)變得很困難,因?yàn)榇嬖诓煌降娘L(fēng)險(xiǎn) yarn install 安裝生成的 yarn.lock 文件 與 npm install 生成的 package-lock.json 文件時(shí)間相差較遠(yuǎn),造成了 yarn.lock 的

    2024年02月09日
    瀏覽(97)
  • npm ERR code ERESOLVE ;npm ERRERESOLVE could not resolve

    安裝 npm 插件時(shí)出現(xiàn)錯(cuò)誤 報(bào)錯(cuò)的原因可能是 : npm 版本問題, npm 的不同版本對(duì)不同的組件庫(kù)等命令不兼容,對(duì)命令的要求更嚴(yán)格; 最簡(jiǎn)單的解決方法是將 --legacy-peer-deps 標(biāo)志傳遞給 npm ,解決指令例如:

    2024年02月15日
    瀏覽(91)
  • npm ERR! code ERESOLVEnpm ERR! ERESOLVE could not resolve dependency

    使用命令安裝 npm 包時(shí),我收到這些異常。 如何解決 ERESOLVE 無法解決安裝 npm 包時(shí)的依賴關(guān)系樹錯(cuò)誤 錯(cuò)誤? 要解決 ERESOLVE 安裝 npm 包時(shí)無法解決依賴關(guān)系樹錯(cuò)誤,您有 依賴關(guān)系沖突 ( 不正確 且可能 損壞 的依賴關(guān)系),如它所說,因此請(qǐng)嘗試使用 或 運(yùn)行命令。如果它沒有

    2024年02月08日
    瀏覽(91)
  • 【Vue報(bào)錯(cuò)】npm ERR! code ERESOLVE npm ERR! ERESOLVE unable to resolve dependency tree npm ERR! npm ERR!

    報(bào)錯(cuò)代碼如下: 報(bào)錯(cuò)原因:由于npm版本太高導(dǎo)致此錯(cuò)誤發(fā)。npm的版本只要超大于或等于7.x.x,會(huì)在某些方面上更加嚴(yán)格,就會(huì)導(dǎo)致出現(xiàn)這種情況,低于7.x.x不會(huì)出現(xiàn)這種情況 解決方案 1.在指令后面都添加上 --legacy-peer-deps,如下 2.在指令后面都加上 --force,如下 3.降低npm版本(

    2024年02月09日
    瀏覽(78)
  • 【npm】npm install命令報(bào)錯(cuò)npm ERR! code ERESOLVE npm ERR! ERESOLVE unable to resolve dependency tree

    一、現(xiàn)象: npm ERR! code ERESOLVE npm ERR! ERESOLVE unable to resolve dependency tree 二、原因 ERESOLVE與npm@7有關(guān)的問題很常見,因?yàn)閚pm7.x對(duì)某些事情比npm6.x更嚴(yán)格。通常,最簡(jiǎn)單的解決方法是將–legacy-peer-deps標(biāo)志傳遞給npm(e.g.,npm i --legacy-peer-deps),或者使用npm@6。 如果這不能立即起作用,

    2024年02月04日
    瀏覽(99)
  • npm ERR! code ERESOLVE npm ERR! ERESOLVE unable to resolve dependency tree

    npm ERR! code ERESOLVE npm ERR! ERESOLVE unable to resolve dependency tree

    當(dāng)我們拿到一個(gè)前端項(xiàng)目的時(shí)候,想要把它運(yùn)行起來,首先是要給它安裝依賴,即cd到當(dāng)前項(xiàng)目根目錄下去執(zhí)行npm install命令,然后有一定幾率在終端你會(huì)遇到這樣的報(bào)錯(cuò): npm ERR! code ERESOLVE npm ERR! ERESOLVE unable to resolve dependency tree 用我的中式英語翻譯一下就是:不能解析依賴

    2023年04月12日
    瀏覽(92)
  • npm ERR! Could not resolve dependency:npm ERR! peer vue@“^2.5.17“ from element-ui@2.15.12

    npm ERR! Could not resolve dependency:npm ERR! peer vue@“^2.5.17“ from element-ui@2.15.12

    在IDEA的控制臺(tái)輸入指令 npm i element-ui -S 報(bào)錯(cuò): npm ERR! Could not resolve dependency:npm ERR! peer vue@\\\"^2.5.17\\\" from element-ui@2.15.12 vue3.0 不兼容 element-ui ,于是推出了element-plus 1.下載 element-plus npm install element-plus --save 2. 在main.js中引用

    2024年02月12日
    瀏覽(24)
  • code ERESOLVE npm ERR! ERESOLVE unable to resolve dependency tree解決

    在使用npm install之后,出現(xiàn)“code ERESOLVE npm ERR! ERESOLVE unable to resolve dependency tree”報(bào)錯(cuò) 所以出現(xiàn)報(bào)錯(cuò)時(shí)就猜測(cè)有可能是版本過老導(dǎo)致的相關(guān)問題。 而事實(shí)上,ERESOLVE相關(guān)的報(bào)錯(cuò)原因大多也確實(shí)是npm7與npm6之間的差異所導(dǎo)致的。 當(dāng)然你也可以選擇降版本到npm6來解決。 網(wǎng)上有人的

    2024年02月06日
    瀏覽(96)
  • npm ERR! code ERESOLVEnpm ERR! ERESOLVE unable to resolve dependency tree

    npm ERR! code ERESOLVEnpm ERR! ERESOLVE unable to resolve dependency tree

    拉取項(xiàng)目到本地 執(zhí)行 npm install 報(bào)錯(cuò) 遇到這個(gè)問題首先確認(rèn)的就是版本是不是太高了,降一下版本?;蛘咄ㄟ^yarn命令替代npm install命令安裝,同理,啟動(dòng)也可以采用yarn dev 啟動(dòng)代替npm run dev 下面教大家用一個(gè)NVM工具,這個(gè)工具是用來管理node.js版本的 nvm流程安裝 1、卸載node.

    2024年02月13日
    瀏覽(89)

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

支付寶掃一掃打賞

博客贊助

微信掃一掃打賞

請(qǐng)作者喝杯咖啡吧~博客贊助

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

二維碼1

領(lǐng)取紅包

二維碼2

領(lǐng)紅包