-
在安裝 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)我放棄的時候,看到了報錯信息關(guān)于 eslint-plugin-vue 的信息,應(yīng)該是版本沖突問題
-
安裝指定的版本就可以了文章來源:http://www.zghlxwxcb.cn/news/detail-613783.html
npm install eslint-plugin-vue@7.0.0文章來源地址http://www.zghlxwxcb.cn/news/detail-613783.html
到了這里,關(guān)于安裝 element-ui 的時候出現(xiàn) ERESOLVE unable to resolve dependency tree的文章就介紹完了。如果您還想了解更多內(nèi)容,請在右上角搜索TOY模板網(wǎng)以前的文章或繼續(xù)瀏覽下面的相關(guān)文章,希望大家以后多多支持TOY模板網(wǎng)!