1.问题 我们在使用npm install ...时,遇到以下问题: npm ERR! code ERESOLVE npm ERR! ERESOLVE could not resolve npm ERR! npm ERR! While resolving: @vue/eslint-config-st
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 ...
node_modules/@vue/cli-plugin-eslintnpmERR!dev @vue/cli-plugin-eslint@"~5.0.0"from the root projectnpmERR!3more(@vue/cli-plugin-router, @vue/cli-plugin-vuex, the root project)npmERR!npmERR!Could not resolve dependency:npmERR!peer @vue/cli-service@"^3.0.0 || ^4.0.0-0"from @vue/...
npm ERR! 2 more (@vue/cli-plugin-eslint, @vue/cli-plugin-unit-jest) npm ERR! 2 more (@vue/cli-plugin-eslint, html-webpack-plugin) npm ERR! npm ERR! Could not resolve dependency: npm ERR! dev less-loader@"^11.1.0" from the root project npm ERR! npm ERR! Conflicting peer depe...
npm ERR! node_modules/@eslint/eslintrc/node_modules/globals npm ERR! globals@"^12.1.0" from @eslint/eslintrc@0.3.0 npm ERR! node_modules/@eslint/eslintrc npm ERR! @eslint/eslintrc@"^0.3.0" from eslint@7.19.0 npm ERR! node_modules/eslint ...
Could not resolve dependency:npmERR!peer eslint@"^5.0.0 || ^6.0.0"from eslint-plugin-vue@6.2.2npmERR!node_modules/eslint-plugin-vue npmERR!dev eslint-plugin-vue@"^6.0.0"from the root project npmERR!npmERR!Fix the upstream dependency conflict,or retry...
npm ERR! node_modules/eslint-config-next npm ERR! dev eslint-config-next@"12.1.4" 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 i element-ui -Snpm ERR! code ERESOLVEnpm ERR! ERESOLVE could not resolvenpm ERR! npm ERR! While resolving: undefined@undefinednpm ERR! Found: vue@3.2.47npm ERR! node_modules/vuenpm ERR! peer vue@"3.2.47" from @vue/server-renderer@3.2.47npm ERR!
如果eslint的版本低于^8.56.0,你需要升级eslint到至少8.56.0版本。可以使用以下命令来升级: bash npm install eslint@^8.56.0 如果eslint的版本高于^8.56.0,但typescript要求的是特定版本,你可能需要降级eslint,或者检查是否有其他包也依赖于eslint,并尝试找到一个兼容的版本。 如果问题仍然存在,可能需要检查pack...
npm WARN Could not resolve dependency: npm WARN peer eslint-plugin-jsdoc@"^15.9.5" from eslint-config-eslint@6.0.0 npm WARN node_modules/@eslint_eslintrc@0.2.2@@eslint/node_modules/eslint-config-eslint npm WARN dev eslint-config-eslint@"^6.0.0" from eslintrc@0.2.2 ...