yoshuawuyts / vmd

:pray: preview markdown files
MIT License
1.18k stars 110 forks source link

Problem installing on Mac #139

Open HelloThisIsFlo opened 3 years ago

HelloThisIsFlo commented 3 years ago

Hi,

I have a problem when installing vmd with npm install -g vmd It seems that it can't get electron v3.1.13.

Would it be possible to unping the dependency so we could use a more recent version of electron? It seems v3.1.13 is not available anymore

jiacai2050 commented 2 years ago

Same issue here.

npm ERR! Error: Failed to find Electron v3.1.13 for darwin-arm64 at https://github.com/electron/electron/releases/download/v3.1.13/electron-v3.1.13-darwin-arm64.zip
Ghasak commented 1 year ago

@jiacai2050 and @HelloThisIsFlo I have faced same problem and managed to solve it, (this repository is outdated, I came here accidentally after using the layer markdown in spacemacs) anyway.

  1. Download the app from https://github.com/yoshuawuyts/vmd/releases/tag/1.34.0 (I selected vmd-1.34.0-mac.zip))
  2. Source the binary using export PATH="$PATH:/Applications/vmd.app/Contents/MacOS/" Put this in your .zshrc or .bashrc or whatever is your shell config file

That's all, You will see it is working and can also work as a command line, integrated with spacemacs layer on M1 machine. I hope this is helpful

HelloThisIsFlo commented 1 year ago

Hey @Ghasak

Thanks a lot! It works!

Inspired by your suggestion, I created a brew tap to make installing it easier. All you have to do now is:

brew install hellothisisflo/the-tap/vmd

So glad I can use vmd again 😃

HelloThisIsFlo commented 1 year ago

@yoshuawuyts You may consider adding a tap to the official homebrew repo. Mine is very archaic, it even hardcodes the version number 😅 (but it works). If you don't maintain this repo, that's alright, then you can just close this issue. It's now solved 👍