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

【Vue報(bào)錯(cuò)】npm ERR! code ERESOLVE npm ERR! ERESOLVE unable to resolve dependency tree npm ERR! npm ERR!

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

報(bào)錯(cuò)代碼如下:

npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR!
npm ERR! While resolving: webvue@0.1.0
npm ERR! Found: vue@3.2.47
npm ERR! node_modules/vue
npm ERR!   vue@"^3.2.13" from the root project
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer vue@"^2.5.17" from element-ui@2.15.12
npm ERR! node_modules/element-ui
npm ERR!   element-ui@"*" 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!
npm ERR! See D:\SoftWareLocation\node_js\node_cache\eresolve-report.txt for a full report.

npm ERR! A complete log of this run can be found in:
npm ERR!     D:\SoftWareLocation\node_js\node_cache\_logs\2023-02-09T11_40_48_239Z-debug-0.log

報(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)這種情況

查看npm版本:npm -v

解決方案
1.在指令后面都添加上 --legacy-peer-deps,如下

npm xxx --legacy-peer-deps

2.在指令后面都加上 --force,如下

npm xxx --force

3.降低npm版本(不推薦,謹(jǐn)慎)

npm install npm@6.14.12 -g  //降低版本指令,版本自己可選擇

因?yàn)榻档桶姹竞螅菀讓?dǎo)致npm和node不相容,會(huì)出現(xiàn)很大的問(wèn)題?。。?span toymoban-style="hidden">文章來(lái)源地址http://www.zghlxwxcb.cn/news/detail-704916.html

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

本文來(lái)自互聯(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 ERR! code ERESOLVEnpm ERR! ERESOLVE could not resolve dependency

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

    2024年02月08日
    瀏覽(92)
  • npm ERR! code ERESOLVE npm ERR! ERESOLVE could not resolve

    npm ERR! code ERESOLVE npm ERR! ERESOLVE could not resolve

    ?有很多類似這樣的異常,而我統(tǒng)一叫npm報(bào)錯(cuò) ERESOLVE 解決方案: npm 配置集舊版-對(duì)等-對(duì)等值設(shè)置為 true 后邊繼續(xù)執(zhí)行npm安裝插件操作 ?當(dāng)然還有一個(gè)類似的 解決方案 ,就是在里 安裝插件的命令后面加上 我舉個(gè)例子,安裝axios 這個(gè)是我沒(méi)試過(guò)的,但是第一個(gè)解決方案一個(gè)道

    2024年02月14日
    瀏覽(94)
  • 解決npm ERR! code ERESOLVE -npm ERR! ERESOLVE could not resolve

    當(dāng)使用一份vue源碼開(kāi)發(fā)項(xiàng)目時(shí),npm install 報(bào)錯(cuò)了 npm ERR! code ERESOLVE npm ERR! ERESOLVE could not resolve npm ERR! npm ERR! While resolving: vue-admin-template@4.4.0 npm ERR! Found: webpack@4.46.0 npm ERR! node_modules/webpack npm ERR! webpack@\\\"^4.0.0\\\" from @vue/cli-plugin-babel@4.4.4 npm ERR! node_modules/@vue/cli-plugin-babel npm ERR! dev

    2024年02月14日
    瀏覽(94)
  • 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 install報(bào)錯(cuò)unable to resolve dependency tree

    npm install報(bào)錯(cuò)unable to resolve dependency tree

    一、問(wèn)題背景 npm install安裝項(xiàng)目依賴時(shí)報(bào)錯(cuò) 解決:npm install --legacy-peer-deps 其實(shí)提示上有:npm ERR! Fix the upstream dependency conflict, or retry npm ERR! this command with --force, or --legacy-peer-deps 二、什么是peerDependency? 在日常使用命令 npm install / npm install XX 下載依賴的操作中,如果你使用的

    2023年04月26日
    瀏覽(29)
  • npm install出現(xiàn)npm ERR! code ERESOLVE npm ERR! ERESOLVE could not resolve

    PS E:myvuebookshop npm i 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! p

    2024年02月11日
    瀏覽(101)
  • 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)
  • 解決:ERESOLVE unable to resolve dependency tree

    解決:ERESOLVE unable to resolve dependency tree

    NPM版本問(wèn)題報(bào)錯(cuò)的解決方案 在安裝項(xiàng)目依賴時(shí),很大可能會(huì)遇到安裝不成功的問(wèn)題,其中有一個(gè)很大的原因,可能就是因?yàn)槟愕膎pm版本導(dǎo)致的。 1.npm ERR! code ERESOLVE npm ERR! ERESOLVE unable to resolve dependency tree 2.ERESOLVE unable to resolve dependency tree 3.如圖: 4.報(bào)錯(cuò)原因 在新版本的npm中,

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

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

    2024年02月15日
    瀏覽(91)
  • 安裝 element-ui 的時(shí)候出現(xiàn) ERESOLVE unable to resolve dependency tree

    安裝 element-ui 的時(shí)候出現(xiàn) ERESOLVE unable to resolve dependency tree

    在安裝 element-ui 的時(shí)候報(bào)錯(cuò) unable to resolve dependency tree (無(wú)法解決的沖突依賴) 嘗試了以下方法: 1)卸載重裝 node.js (npm 與 node 版本不匹配) 2) 執(zhí)行 npm clean cache --force (清除緩存) 3) 刪除 node_modules 和 package-lock.json;并重新執(zhí)行 npm install 最后依舊解決不了問(wèn)題,正當(dāng)我放棄的時(shí)

    2024年02月15日
    瀏覽(28)

覺(jué)得文章有用就打賞一下文章作者

支付寶掃一掃打賞

博客贊助

微信掃一掃打賞

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

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

二維碼1

領(lǐng)取紅包

二維碼2

領(lǐng)紅包