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

npm install:Could not resolve dependency:peer... 原因和解決方案

這篇具有很好參考價值的文章主要介紹了npm install:Could not resolve dependency:peer... 原因和解決方案。希望對大家有所幫助。如果存在錯誤或未考慮完全的地方,請大家不吝賜教,您也可以點(diǎn)擊"舉報違法"按鈕提交疑問。

電腦npm install報錯; 報錯日志如下:

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! 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!
npm ERR! See C:\Users\AB123\AppData\Local\npm-cache\eresolve-report.txt for a full report.

npm ERR! A complete log of this run can be found in:
npm ERR!     C:\Users\AB123\AppData\Local\npm-cache\_logs\2023-01-24T03_08_49_805Z-debug-0.log

上述報錯日志中有個關(guān)鍵字眼:this command with --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:何時使用--force--legacy-peer-deps
--force 會無視沖突,并強(qiáng)制獲取遠(yuǎn)端npm庫資源,即使本地有資源也會覆蓋掉
--legacy-peer-deps:安裝時忽略所有peerDependencies,忽視依賴沖突,已有的依賴不會覆蓋,。
建議用--legacy-peer-deps 比較保險一點(diǎn),反正我用了就安裝成功了;


比如原本的命令為 npm i vuex-persistedstate 。改為npm i vuex-persistedstate --legacy-peer-deps即可。其余同樣如此文章來源地址http://www.zghlxwxcb.cn/news/detail-542434.html

到了這里,關(guān)于npm install:Could not resolve dependency:peer... 原因和解決方案的文章就介紹完了。如果您還想了解更多內(nèi)容,請在右上角搜索TOY模板網(wǎng)以前的文章或繼續(xù)瀏覽下面的相關(guān)文章,希望大家以后多多支持TOY模板網(wǎng)!

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

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

相關(guān)文章

  • npm ERR! code ERESOLVEnpm ERR! ERESOLVE could not resolve dependency

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

    2024年02月08日
    瀏覽(91)
  • 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)
  • ERESOLVE overriding peer dependency npm install錯誤

    錯誤提示 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. 根據(jù)提示解決辦法之一 npm i --legacy-peer-deps –legacy-peer-deps命令用于繞過peerDependency里依賴的自動安裝;它告訴npm忽略項

    2024年04月22日
    瀏覽(26)
  • 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)
  • Could not resolve dependencies for project

    Could not resolve dependencies for project

    maven 打包Could not resolve dependencies for project和無效的目標(biāo)發(fā)行版: 1.8 1.maven 打包Could not resolve dependencies for project 最近項目上使用的是idea ide的多模塊話,需要模塊之間的依賴,比如說系統(tǒng)管理模塊依賴授權(quán)模塊進(jìn)行認(rèn)證和授權(quán),而認(rèn)證授權(quán)模塊需要依賴系統(tǒng)管理模塊進(jìn)行,然后

    2024年02月08日
    瀏覽(32)
  • Maven編譯報錯:Could not resolve dependencies for project

    編譯項目時 出現(xiàn)報錯: Failed to execute goal on project xxx-mybatis: Could not resolve dependencies for project com.xxx:xxx-mybatis:jar:0.0.1-SNAPSHOT: Could not transfer artifact org.mybatis:mybatis:jar:3.4.5 from/to central ( https://repo.maven.apache.org/maven2): GET request of: org/mybatis/mybatis/3.4.5/mybatis-3.4.5.jar from central failed: Pr

    2024年02月03日
    瀏覽(128)
  • 【npm】npm install命令報錯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)的問題很常見,因為npm7.x對某些事情比npm6.x更嚴(yán)格。通常,最簡單的解決方法是將–legacy-peer-deps標(biāo)志傳遞給npm(e.g.,npm i --legacy-peer-deps),或者使用npm@6。 如果這不能立即起作用,

    2024年02月04日
    瀏覽(99)
  • npm ERR! ERESOLVE could not resolve

    問題產(chǎn)生的原因和如何解決,其實npm已經(jīng)列在了最后: 問題原因是依賴沖突導(dǎo)致不能下載依賴包(dependency conflict), 因為npm版本升級(version7), npmV7之前的版本遇到依賴沖突會忽視依賴沖突,繼續(xù)進(jìn)行安裝, npmV7版本開始不會自動進(jìn)行忽略,需要用戶手動輸入命令。 解決

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

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

    2024年02月15日
    瀏覽(91)
  • 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)

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

支付寶掃一掃打賞

博客贊助

微信掃一掃打賞

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

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

二維碼1

領(lǐng)取紅包

二維碼2

領(lǐng)紅包