Dependency issue with remark-parse and remark-math #9601
Labels
locked-due-to-inactivity
Please open a new issue and fill out the template instead of commenting.
type:duplicate
Issues that are a duplicate of a previous issue
When installing prettier as pre-commit hook, I get a dependency error with remark-parse and remark-math. See message below and eresolve-report.txt attached. If you need any more information to reproduce the error, please let me know.
My operating system: openSUSE TW, but issue also happened on a colleague's laptop running Manjaro.
An unexpected error has occurred: CalledProcessError: command: ('/home/evdvelde/.cache/pre-commit/repos5bkvdni/node_env-default/bin/node', '/home/evdvelde/.cache/pre-commit/repos5bkvdni/node_env-default/bin/npm', 'install')
return code: 1
expected return code: 0
stdout: (none)
stderr:
npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR!
npm ERR! While resolving: prettier@2.1.2
npm ERR! Found: remark-parse@8.0.3
npm ERR! node_modules/remark-parse
npm ERR! remark-parse@"8.0.3" from the root project
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer remark-parse@"^3.0.0 || ^4.0.0 || ^5.0.0 || ^6.0.0" from remark-math@1.0.6
npm ERR! node_modules/remark-math
npm ERR! remark-math@"1.0.6" 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! See /home/evdvelde/.npm/eresolve-report.txt for a full report.
eresolve-report.txt
The text was updated successfully, but these errors were encountered: