hmsk / vite-plugin-markdown

A vite plugin to import a Markdown file in various formats like Front Matter, HTML, ToC, and React/Vue Component
https://www.npmjs.com/package/vite-plugin-markdown
MIT License
263 stars 44 forks source link

npm i vite-plugin-markdown error #442

Closed 0216lt closed 1 year ago

0216lt commented 1 year ago

sudo npm i vite-plugin-markdown

npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR!
npm ERR! While resolving: open-web@0.0.0
npm ERR! Found: vite@4.3.9
npm ERR! node_modules/vite
npm ERR!   dev vite@"^4.3.9" from the root project
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer vite@"^2.0.0 || ^3.0.0" from vite-plugin-markdown@2.1.0
npm ERR! node_modules/vite-plugin-markdown
npm ERR!   vite-plugin-markdown@"*" 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 ERR! to accept an incorrect (and potentially broken) dependency resolution.
npm ERR!
npm ERR!
npm ERR! For a full report see:
npm ERR! /Applications/MxSrvs/cache/nodejs/_logs/2023-06-30T08_33_15_545Z-eresolve-report.txt

npm ERR! A complete log of this run can be found in:
npm ERR!     /Applications/MxSrvs/cache/nodejs/_logs/2023-06-30T08_33_15_545Z-debug-0.log
hmsk commented 1 year ago

use v2.2.0-2 until it's out on latest tag.