-
-
Notifications
You must be signed in to change notification settings - Fork 304
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Nothing happens except Node.js version was displayed in status bar #637
Comments
Same here using macOS Sonoma and Node 17.5. I installed |
To me nothing happen at all |
Same as @H3ndry , nothing happens. NixOs 23.11, Node 20.10, yarn 1.22.19, installed with Lazy |
@MarkoMin I manage to fix it... You have to trigger a rebuild |
On Lazy you have to press |
I did clean then install few times but with no success |
does your config look like this?
|
It was: -- install without yarn or npm
{
"iamcco/markdown-preview.nvim",
cmd = { "MarkdownPreviewToggle", "MarkdownPreview", "MarkdownPreviewStop" },
ft = { "markdown" },
build = function() vim.fn["mkdp#util#install"]() end,
} and it didn't work. With your config it works. Thanks |
same on win11 wsl2,installed by lazy |
same on macos using nvim 0.9.4, I tried using node 18 and 20. |
how is that? |
@diegoulloao try reinstalling the plugin, it worked for me |
#424 try this. I had the same problem and it worked for me. |
this worked for me (lazy.nvim, neovim 9.x, ubuntu 22.04) {
"iamcco/markdown-preview.nvim",
ft = { "markdown" },
build = "cd app && yarn install",
config = function() vim.g.mkdp_filetypes = { "markdown" } end,
}, |
For me nothing happens. If I rebuild from uninstalling and reinstalling, it works once, but then it stops working again.
return {
"iamcco/markdown-preview.nvim",
ft = { "markdown" },
build = function()
vim.fn["mkdp#util#install"]()
end,
keys = {
{ "<leader>p", "<cmd>MarkdownPreviewToggle<cr>", mode = "n", desc = "Toggle previewer" },
},
} |
should use npm or yarn to install |
I have the same issue. MarkdownPreview opens the browser which then shows an error. When experimenting with manual install, yarn, npm etc. at some point just tne node version was displayed. Currently nothing is being shown. I also tried to set the log level, but that did not create a file or anything. I am also a bit stuck here... |
I was having the same problem. Another comment in an issue was a fix, but if you're using lazyvim, you basically do the same thing, except change the path to:
and I got mine up and running great. |
Same, message displayed Node.js v22.9.0 |
Same problem, referenced fix from @ryan-hafen-525 works for me too. |
Thank you @ryan-hafen-525. The referenced comment works for me! |
Describe the bug
When invoking MarkdownPreview, vim simply displays the Node.js version in the status bar and nothing happens
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Markdown rendering starts in new browser window
Screenshots

Desktop (please complete the following information):
Log: N/A
The text was updated successfully, but these errors were encountered: