Closed sxlijin closed 7 years ago
@sxlijin Sorry that I did not test this package on windows ever. I don't have windows machine/VM installed so that I can debug this very soon. This package is modified from markdown-preview written by Atom officially and I didn't add additional dependencies.
Fortunately, another package, markdown-preview-plus is also based on markdown-preview and there is an issue which seems the same as what you happen. https://github.com/Galadirith/markdown-preview-plus/issues/31. They indeed install something of Visual Studio Express 2013. You can search @Galadirith in that issue discussion. I believe this issue is from Atom itself or its official markdown-preview.
@sxlijin I installed win10 enterprise 64 and got installation error,
Same: oniguruma@5.1.2 Difference: errors mesages other than yours(error MSB3428).
The cause is that the original markdowm preview
uses oniguruma, https://github.com/atom/node-oniguruma/blob/master/binding.gyp, which is a native binding library. Thefore it needs some library fo Visual Studio to do native-rebuild.
So the steps of the possible solution (worked on my win10 case) is
On Windows:
Option 1: Install all the required tools and configurations using Microsoft's windows-build-tools using npm install --global --production windows-build-tools from an elevated PowerShell or CMD.exe (run as Administrator).
p.s. using optiona1 needs to use npm package not supplied by atom. Therefore you need to install Node.js & NPM first.
I just ran into the following error while attempting to install the package. I'm running Windows 7 x64 (and I do have Kramdown installed - at least
gem install kramdown
worked without any problems), although I don't have VS installed - are these dependencies that the user is expected to have?The closest I could find to a solution was this, but that user already has VS.