if you’re like me, you probably looked at the instructions requiring you to go to cloud 9 and hit the credit card part for registration, then paused. Even though it is totally free. Being confronted with a credit card request is just enough to give someone pause, even when they are offering a cool, free service that would let you do these projects over your android tablet, for example.
Then looking at the instructions, I notice it says we’re using git-it
and when I go to their page, they say “this is the CLI version, and there is a newer, spiffier gui version which is the primary version now”. That’s not an actual quote, I’m paraphrasing. This is still a tutorial for using the git commandline tool, do I really need a gui version? Well, if you saw that “primary version” thing I paraphrased up above, you know the answer to that question in your heart already…
I already have installed npm and git on my system. So I can do this right nere, no Cloud9 needed.
So I opened the PowerShell, used the same command I saw, but for git-it-electron npm i -g git-it-electron
and then tried git-it
… and got nothing. git-it-electron
? still, nothing. The git-it-electron github page’s readme… has no instructions for getting the executable up and running.
In cases like this, the next thing to do is npm uninstall -g git-it-electron
. Good, now I can figure out why this thing isn’t building. Here’s the steps I took to get it running:
- make a project directory within your favorite place on your drive for github projects … like mine at
C:\github
-
cd
in and runnpm init -y
to get a skeleton package up. npm i -s git-it-electron
- there’s no executable in
node_modules/.bin
… so,cd ./node_modules/git-it-electron
- read that package.json. The scripts you need to run are:
a.npm run build-all
b.npm run pack-win
- but this one won’t work yet. - now you’ll need to build an electron app:
npm i -g electron-packager
- ok, so you can run 5.b. now
- you’ll notice a brand new
Git-it-win32-ia32
directory … this means I probably should have given it a flag for 64bit, but oh well. In that directory is a fileGit-it.exe
. Run that.
Cheers