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

npm ERR! code ERESOLVEnpm ERR! ERESOLVE unable to resolve dependency tree

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

拉取項(xiàng)目到本地

執(zhí)行 npm install 報(bào)錯(cuò)

npm ERR! code ERESOLVEnpm ERR! ERESOLVE unable to resolve dependency tree,VUE,npm,前端,node.js,yarn

遇到這個(gè)問(wèn)題首先確認(rèn)的就是版本是不是太高了,降一下版本?;蛘咄ㄟ^(guò)yarn命令替代npm install命令安裝,同理,啟動(dòng)也可以采用yarn dev 啟動(dòng)代替npm run dev

下面教大家用一個(gè)NVM工具,這個(gè)工具是用來(lái)管理node.js版本的

nvm流程安裝

1、卸載node.js?

npm ERR! code ERESOLVEnpm ERR! ERESOLVE unable to resolve dependency tree,VUE,npm,前端,node.js,yarn

2、Releases · coreybutler/nvm-windows · GitHub

?安裝1.1.7版本的nvm,注意下載這個(gè)包解壓。其他版本安裝會(huì)報(bào)錯(cuò)npm ERR! code ERESOLVEnpm ERR! ERESOLVE unable to resolve dependency tree,VUE,npm,前端,node.js,yarn

?3、nvm -v

npm ERR! code ERESOLVEnpm ERR! ERESOLVE unable to resolve dependency tree,VUE,npm,前端,node.js,yarn

?4、打開(kāi)setting.txt文件,添加這兩行

node_mirror: https://npm.taobao.org/mirrors/node/
npm_mirror: https://npm.taobao.org/mirrors/npm/

?npm ERR! code ERESOLVEnpm ERR! ERESOLVE unable to resolve dependency tree,VUE,npm,前端,node.js,yarn

5 nvm使用

打開(kāi)cmd 以管理員身份打開(kāi)命令符。

6 下載node版本

nvm install 14.17.6

一定要耐心等待?node.js version 14.17.6

和Downloading npm version 6.14.15... E安裝完畢

npm ERR! code ERESOLVEnpm ERR! ERESOLVE unable to resolve dependency tree,VUE,npm,前端,node.js,yarn

本地啟動(dòng)多個(gè)項(xiàng)目 ,不同項(xiàng)目的js版本可能不同,所以這個(gè)工具還是很有必要安裝的文章來(lái)源地址http://www.zghlxwxcb.cn/news/detail-644120.html

到了這里,關(guān)于npm ERR! code ERESOLVEnpm ERR! ERESOLVE unable to resolve dependency tree的文章就介紹完了。如果您還想了解更多內(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】npm install命令報(bào)錯(cuò)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)的問(wèn)題很常見(jiàn),因?yàn)閚pm7.x對(duì)某些事情比npm6.x更嚴(yán)格。通常,最簡(jiǎn)單的解決方法是將–legacy-peer-deps標(biāo)志傳遞給npm(e.g.,npm i --legacy-peer-deps),或者使用npm@6。 如果這不能立即起作用,

    2024年02月04日
    瀏覽(99)
  • 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出現(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日
    瀏覽(97)
  • 解決: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日
    瀏覽(29)
  • 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日
    瀏覽(30)

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

支付寶掃一掃打賞

博客贊助

微信掃一掃打賞

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

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

二維碼1

領(lǐng)取紅包

二維碼2

領(lǐng)紅包