iamcco / markdown-preview.nvim

markdown preview plugin for (neo)vim
MIT License
6.36k stars 268 forks source link

Can't start `MarkdownPreview` in mac m2 #660

Closed touero closed 2 months ago

touero commented 2 months ago

My env: mac m2, lazyvim, wezterm.

Try MarkdownPreview it will have a log hint:

Error detected while processing function mkdp#util#toggle_preview[2]..mkdp#util#open_preview_page[6]..mkdp#rpc#start_server:
line   18:
E903: Process failed to start: Unknown system error -88: "/Users/weiensong/.local/share/nvim/lazy/markdown-preview.nvim/app/bin/markdown-preview-macos-arm64"
Error detected while processing function mkdp#util#toggle_preview[2]..mkdp#util#open_preview_page[6]..mkdp#rpc#start_server:
line   18:
E903: Process failed to start: Unknown system error -88: "/Users/weiensong/.local/share/nvim/lazy/markdown-preview.nvim/app/bin/markdown-preview

it’s logs 截屏2024-04-05 14 51 07

nbari commented 2 months ago

Same here but after updating nodejs to v20.12.1

touero commented 2 months ago

Same here but after updating nodejs to v20.12.1

截屏2024-04-06 11 04 18

already it is

wangwenqiangGitHub commented 2 months ago

image linux already it is

nodu commented 2 months ago

https://github.com/iamcco/markdown-preview.nvim/issues/667#issuecomment-2078041723 Maybe connected?

dillontkh commented 2 months ago

#667 (comment) Maybe connected?

Was facing this issue on a M2 Mac as well, and reinstalling the plugin as you suggested helped to fix it. Thanks!

touero commented 2 months ago

#667 (comment) Maybe connected?

Was facing this issue on a M2 Mac as well, and reinstalling the plugin as you suggested helped to fix it. Thanks!

How did you do that? I always fail.

nodu commented 2 months ago

@touero, You can find the neovim location where your plugins are installed, then delete the folder for this plugin. Then launch your neovim plugin manager again and it should re-install.

touero commented 2 months ago

@touero, You can find the neovim location where your plugins are installed, then delete the folder for this plugin. Then launch your neovim plugin manager again and it should re-install.

Wonderful, I used lazy.vim config my neovim.

  1. Delete ~/.local/share/nvim/lazy/markdown-preview.nvim
  2. Restart neovim and waitting install finish.
tatthien commented 1 month ago

@touero, You can find the neovim location where your plugins are installed, then delete the folder for this plugin. Then launch your neovim plugin manager again and it should re-install.

Wonderful, I used lazy.vim config my neovim.

  1. Delete ~/.local/share/nvim/lazy/markdown-preview.nvim
  2. Restart neovim and waitting install finish.

It works for me

Dolfost commented 1 month ago

@touero, You can find the neovim location where your plugins are installed, then delete the folder for this plugin. Then launch your neovim plugin manager again and it should re-install.

Wonderful, I used lazy.vim config my neovim.

  1. Delete ~/.local/share/nvim/lazy/markdown-preview.nvim
  2. Restart neovim and waitting install finish.

I just disabled it in lazy and reinstalled, thanks!