How to Install Backslide on Windows

I'm working on writing a talk for an upcoming conference and I decided to look into using remarkjs to see if I like it. There's a CLI tool for using remark called backslide that adds some convenience, so I decided I'd give that a go.

When I tried to install it, I got a bunch of errors from the dependencies-

PS C:\Users\jcleaver> npm install -g backslide

node-pre-gyp WARN Tried to download(404):  
node-pre-gyp WARN Pre-built binaries not found for hummus@1.0.87 and node@8.11.1 (node-v57 ABI, unknown) (falling back to source compile with node-gyp)  
gyp ERR! configure error  
gyp ERR! stack Error: Can't find Python executable "C:\Python36-32\python.EXE", you can set the PYTHON env variable.  

Well, when I tried setting PYTHON like it says to, I got the same message. It turns out, it needs Python 2.7. When searching I also found that it needs a C++ compiler. For a javascript package. =|

Fortunately, someone was nice enough to make an NPM package that does both of these things and installs them such that they don't interfere with existing installs.

npm install --global windows-build-tools  
npm install --global backslide  

John Cleaver

Read more posts by this author.