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

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

這篇具有很好參考價值的文章主要介紹了code ERESOLVE npm ERR! ERESOLVE unable to resolve dependency tree解決。希望對大家有所幫助。如果存在錯誤或未考慮完全的地方,請大家不吝賜教,您也可以點擊"舉報違法"按鈕提交疑問。

問題描述

在使用npm install之后,出現(xiàn)“code ERESOLVE npm ERR! ERESOLVE unable to resolve dependency tree”報錯

問題解決

npm i --legacy-peer-deps

所以出現(xiàn)報錯時就猜測有可能是版本過老導(dǎo)致的相關(guān)問題。
而事實上,ERESOLVE相關(guān)的報錯原因大多也確實是npm7與npm6之間的差異所導(dǎo)致的。
當(dāng)然你也可以選擇降版本到npm6來解決。

網(wǎng)上有人的解釋是,在包搜索時沒有找到對應(yīng)的版本,但是找到了更新的版本,可是系統(tǒng)出于某種原因并不愿意接受更新的版本,所以出現(xiàn)了依賴樹的無法成功解析的報錯??梢酝ㄟ^–legacy-peer-deps來忽視舊的版本依賴,從而解決問題。文章來源地址http://www.zghlxwxcb.cn/news/detail-736133.html

到了這里,關(guān)于code ERESOLVE npm ERR! ERESOLVE unable to resolve dependency tree解決的文章就介紹完了。如果您還想了解更多內(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īng)查實,立即刪除!

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

相關(guān)文章

  • 解決:ERESOLVE unable to resolve dependency tree

    解決:ERESOLVE unable to resolve dependency tree

    NPM版本問題報錯的解決方案 在安裝項目依賴時,很大可能會遇到安裝不成功的問題,其中有一個很大的原因,可能就是因為你的npm版本導(dǎo)致的。 1.npm ERR! code ERESOLVE npm ERR! ERESOLVE unable to resolve dependency tree 2.ERESOLVE unable to resolve dependency tree 3.如圖: 4.報錯原因 在新版本的npm中,

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

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

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

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

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

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

    當(dāng)使用一份vue源碼開發(fā)項目時,npm install 報錯了 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日
    瀏覽(93)
  • npm install報錯unable to resolve dependency tree

    npm install報錯unable to resolve dependency tree

    一、問題背景 npm install安裝項目依賴時報錯 解決:npm install --legacy-peer-deps 其實提示上有: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 ERR! code ERESOLVE npm ERR! ERESOLVE could not resolve

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

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

    2024年02月14日
    瀏覽(94)
  • npm i時報錯npm ERR! code ERESOLVE npm ERR! ERESOLVE could not resolve npm ERR! npm ERR! While resolving

    使用npm或yarn安裝第三方包。 使用npm命令和yarn命令混合使用會出現(xiàn)安裝包沖突。 如果將 yarn.lock 和 package.lock 文件放在一起,有時會變得很困難,因為存在不同步的風(fēng)險 yarn install 安裝生成的 yarn.lock 文件 與 npm install 生成的 package-lock.json 文件時間相差較遠,造成了 yarn.lock 的

    2024年02月09日
    瀏覽(97)
  • 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í)行命令時報錯npm ERR! code ERESOLVE npm ERR! ERESOLVE could not resolve

    npm 執(zhí)行命令時報錯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 ERR code ERESOLVE ;npm ERRERESOLVE could not resolve

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

    2024年02月15日
    瀏覽(91)

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

支付寶掃一掃打賞

博客贊助

微信掃一掃打賞

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

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

二維碼1

領(lǐng)取紅包

二維碼2

領(lǐng)紅包