Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

No version matching "^11.0.0" found for specifier "remark-rehype" (but package exists)

I tried to install react-markdown using bun. But I get the following error:

$ bun i react-markdown
bun add v1.1.20 (ae194892)                                              
error: No version matching "^11.0.0" found for specifier "remark-rehype" (but package exists)
error: remark-rehype@^11.0.0 failed to resolve

I’m new to node.js and bun. I switched from npm to bun.

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

>Solution :

Try using the following command:

bun install --force
bun install react-markdown

Sometimes the caching of bun causes this problem.

bun install --force forces Bun, a package manager, to reinstall all dependencies listed in your package.json file, even if they are already installed.

Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading