Run like so:
node gist-clone-all.js username
You'll want to replace "username" with your own username.
This script clones using the push URL, so you should probably be the owner of the gists. You could also use this to clone someone else's gists, but in that case you may wish to edit the code to use gist_pull_url
instead.