Skip to content

[BUG with Solution] :MarkdownPreview prints Node.js v22.6.0 and does nothing #695

Open
@iamhrigved

Description

@iamhrigved

Describe the bug

I installed this plugin with the following setup

{
    "iamcco/markdown-preview.nvim",
    cmd = { "MarkdownPreviewToggle", "MarkdownPreview", "MarkdownPreviewStop" },
    ft = { "markdown" },
    build = function() vim.fn["mkdp#util#install"]() end,
}

When I tried to run :MarkdownPreview it just printed Node.js v22.6.0 and did nothing.

To Reproduce

Steps to reproduce the behavior:

  1. Add the plugin with lazy
  2. Open a markdown file
  3. Do :MarkdownPreview

Expected behavior

A browser window should open with the preview of the markdown file.

Desktop

  • OS: Arch Linux
  • WM: Hyprland
  • Browser: Brave Browser

Solution

I saw this issue and tried the following:

cd ~/.local/share/nvim/lazy/markdown-preview.nvim
npm install

I then tried to do MarkdownPreview and it worked !!!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions