-
-
Notifications
You must be signed in to change notification settings - Fork 285
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
[BUG with Solution] :MarkdownPreview
prints Node.js v22.6.0
and does nothing
#695
Comments
maybe a better solution would be to do something like this:
or
|
This initially provided a fix and then I started getting I use Plug and I tried via the commands listed in the README as well as issuing manually. I tried deleting and reinstalling. This seems to sometimes work and sometimes fail (after initially working). Output always looked like this regardless of working or failing $ rm -r ~/.vim/plugged/markdown-preview.nvim
$ vim -c "PlugInstall" -c "qa"
yarn install v1.22.22
[1/4] 🔍 Resolving packages...
[2/4] 🚚 Fetching packages...
[3/4] 🔗 Linking dependencies...
[4/4] 🔨 Building fresh packages...
✨ Done in 0.26s.
$ vim ~/.dotfiles/README.md -c "MarkdownPreview" So if other users are experiencing this, I'm not sure what to say but maybe try a few times. There's clearly something else afoot but might need more reports to find the right cause. This was done on a M2 Mac Air |
FWIW I upgraded to Sequoia and this broke again. Tried a full reinstall and nothing. |
I haven't tried this (my system needed the npx workaround at #690 so I couldn't try it), but the line after build = function()
vim.fn["mkdp#util#install"]()
vim.cmd("!cd " .. plugin.dir .. " && npm install")
end, Speaking of #690 , if you're using that workaround with npx, try this for the build = function(plugin)
if vim.fn.executable "npx" then
vim.cmd("!cd " .. plugin.dir .. " && cd app && npx --yes yarn install && npm install")
else
vim.cmd [[Lazy load markdown-preview.nvim]]
vim.fn["mkdp#util#install"]()
end
end, (essentially |
Describe the bug
I installed this plugin with the following setup
When I tried to run
:MarkdownPreview
it just printedNode.js v22.6.0
and did nothing.To Reproduce
Steps to reproduce the behavior:
:MarkdownPreview
Expected behavior
A browser window should open with the preview of the markdown file.
Desktop
Solution
I saw this issue and tried the following:
I then tried to do
MarkdownPreview
and it worked !!!The text was updated successfully, but these errors were encountered: