npm i安装依赖的时候报错如下:
npm WARN config global --global, --local are deprecated. Use --location=global instead.
npm WARN ERESOLVE overriding peer dependency
npm WARN While resolving: vite-plugin-md@0.11.9
npm WARN Found: vite@4.3.9
npm WARN node_modules/vite
npm WARN dev vite@"^4.0.0" from the root project
npm WARN 6 more (@vitejs/plugin-vue, @vitejs/plugin-vue-jsx, insure-ui, ...)
npm WARN
npm WARN Could not resolve dependency:
npm WARN node_modules/vite-plugin-md
npm WARN vite-plugin-md@"^0.11.9" from @insure/cli@0.0.10
npm WARN npm WARN Conflicting peer dependency: vite@2.9.16
npm WARN node_modules/vite npm WARN peer vite@"^2.0.0" from vite-plugin-md@0.11.9
npm WARN node_modules/vite-plugin-md npm WARN vite-plugin-md@"^0.11.9" from @insure/cli@0.0.10
npm WARN node_modules/@insure/cli npm ERR! code ETARGET npm ERR! notarget No matching version found for @humanwhocodes/config-array@^0.11.10.
npm ERR! notarget In most cases you or one of your dependencies are requesting npm ERR! notarget a package version that doesn't exist.
解决办法:
-
删除
node_modules文件夹 -
清除
npm缓存,运行如下命令:npm cache clean --force //删除 package-lock.json // mac os rm package-lock.json //windows os del package-lock.json -
执行
npm install重新安装