"unable to resolve dependency tree" during install - Lightrun
文章推薦指數: 80 %
"unable to resolve dependency tree" during install. (Original URL). When I try to install this project within my Nuxt site, I get the follow error: npm install ... "unabletoresolvedependencytree"duringinstall(OriginalURL)WhenItrytoinstallthisprojectwithinmyNuxtsite,Igetthefollowerror: npminstall--save-dev@nuxtjs/storybook npmERR!codeERESOLVE npmERR!ERESOLVEunabletoresolvedependencytree npmERR! npmERR!Found:[email protected] npmERR!node_modules/react npmERR!peerOptionalreact@"^16.8.0||^17.0.0"from@storybook/[email protected] npmERR!node_modules/@storybook/addon-essentials npmERR!@storybook/addon-essentials@"^6.1.14"from@nuxtjs/[email protected] npmERR!node_modules/@nuxtjs/storybook npmERR!dev@nuxtjs/storybook@"*"fromtherootproject npmERR!peerOptionalreact@"^16.8.0||^17.0.0"from@storybook/[email protected] npmERR!node_modules/@storybook/addon-actions npmERR!@storybook/addon-actions@"6.1.21"from@storybook/[email protected] npmERR!node_modules/@storybook/addon-essentials npmERR!@storybook/addon-essentials@"^6.1.14"from@nuxtjs/[email protected] npmERR!node_modules/@nuxtjs/storybook npmERR!dev@nuxtjs/storybook@"*"fromtherootproject npmERR!11more(@storybook/addon-backgrounds,...) npmERR! npmERR!Couldnotresolvedependency: npmERR!peerreact@"^16.8.4"[email protected] npmERR!node_modules/@storybook/addon-actions/node_modules/react-inspector npmERR!react-inspector@"^5.0.1"from@storybook/[email protected] npmERR!node_modules/@storybook/addon-actions npmERR!@storybook/addon-actions@"6.1.21"from@storybook/[email protected] npmERR!node_modules/@storybook/addon-essentials npmERR!@storybook/addon-essentials@"^6.1.14"from@nuxtjs/[email protected] npmERR!node_modules/@nuxtjs/storybook npmERR! npmERR!Fixtheupstreamdependencyconflict,orretry npmERR!thiscommandwith--force,or--legacy-peer-deps npmERR!toacceptanincorrect(andpotentiallybroken)dependencyresolution. npmERR! npmERR!See/home/sean/.npm/eresolve-report.txtforafullreport. npmERR!Acompletelogofthisruncanbefoundin: npmERR!/home/sean/.npm/_logs/2021-03-26T15_12_51_106Z-debug.log Here’smy'package.json`toshowwhatelseIhaveinstalled: { "name":"nuxt", "version":"1.0.0", "private":true, "scripts":{ "dev":"nuxt", "build":"nuxtbuild", "start":"nuxtstart", "generate":"nuxtgenerate", "lint:js":"eslint--ext\".js,.vue\"--ignore-path.eslintignore.", "lint:fix":"eslint--ext\".js,.vue\"--fix--ignore-path.eslintignore.", "lint":"npmrunlint:js", "cy:open":"cypressopen", "cy:run":"cypressrun" }, "dependencies":{ "@nuxt/utils":"^2.15.2", "@nuxtjs/auth-next":"5.0.0-1613647907.37b1156", "@nuxtjs/axios":"^5.13.1", "@nuxtjs/universal-storage":"^0.5.7", "core-js":"^3.8.3", "dotenv":"^8.2.0", "nuxt":"^2.14.12", "vue":"^2.6.12", "vue-debounce":"^2.6.0", "vuex":"^3.6.2" }, "devDependencies":{ "@nuxtjs/eslint-config":"^5.0.0", "@nuxtjs/eslint-module":"^3.0.2", "@nuxtjs/toast":"^3.3.1", "babel-eslint":"^10.1.0", "blunt-css":"^1.1.0", "cypress":"^6.6.0", "eslint":"^7.18.0", "eslint-config-airbnb-base":"^14.2.1", "eslint-config-standard":"^16.0.2", "eslint-plugin-cypress":"^2.11.2", "eslint-plugin-import":"^2.22.1", "eslint-plugin-node":"^11.1.0", "eslint-plugin-nuxt":"^2.0.0", "eslint-plugin-promise":"^4.3.1", "eslint-plugin-standard":"^4.1.0", "eslint-plugin-vue":"^7.7.0", "nuxt-purgecss":"^1.0.0" } } TryLightruntocollectproductionstacktraceswithoutstoppingyourJavaapplications!Comments(5)byfarnabaz+5ThisistheissuewithNPMmodernpeeddependencysystem,Untilthefix,tryusinglegacypeerdependency npminstall@nuxtjs/storybook--legacy-peer-deps bybartenra+1HavingthesameissuewithVue3. Icannotrunnpminstallanymore. byandrew-boydAddingmyhattotheringhere-sameissuewithnpmi bykrutoosameissue byhtliliHavingsameerrorwithreact17.Theweirdpartisthatyarnworksbutnpmidoesnot. PreviousissueAwaytodiscoverthelabelofablock(inValueRef)NextissueERRORTypeError:Cannotreadproperty'kind'ofundefined
延伸文章資訊
- 1Unable to resolve dependency tree error in Angular while ...
To fix Unable to resolve dependency tree error in Angular while installing `npm` packages follow ...
- 2"unable to resolve dependency tree" during install - Lightrun
"unable to resolve dependency tree" during install. (Original URL). When I try to install this pr...
- 3npm - ERR! code ERESOLVE - CSDN博客
ERESOLVE unable to resolve dependency tree. npm ERR! npm ERR! Found: [email protected]. npm ERR! nod...
- 4npm版本兼容导致的npm ERR! ERESOLVE unable to ... - 博客园
ERESOLVE unable to resolve dependency tree. 当团队项目中,团队成员的npm包管理工具版本不一致时执行npm install报错:.
- 5npm 安裝依賴報錯npm ERR! ERESOLVE unable to ... - 有解無憂
ERESOLVE unable to resolve dependency tree. 2021-05-03 08:06:02 區塊鏈. PS F:\devops_common\cloud-vu...