錯(cuò)誤提示 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忽略項(xiàng)目中引入的各個(gè)依賴模塊之間依賴相同但版本不同的問題,以npm v3-v6的方式去繼續(xù)執(zhí)行安裝操作。該命令不是真的解決沖突,而是忽略了沖突文章來源地址http://www.zghlxwxcb.cn/news/detail-855714.html
文章來源:http://www.zghlxwxcb.cn/news/detail-855714.html
到了這里,關(guān)于ERESOLVE overriding peer dependency npm install錯(cuò)誤的文章就介紹完了。如果您還想了解更多內(nèi)容,請?jiān)谟疑辖撬阉鱐OY模板網(wǎng)以前的文章或繼續(xù)瀏覽下面的相關(guān)文章,希望大家以后多多支持TOY模板網(wǎng)!