Yep, as our previous two posters suggested, you can use either method. Considering you're installing to a ~/flarum directory, I'd suggest that there's a hidden .git file folder or something preventing your installation. Clean it out, or remove the /flarum directory and recreate it, and then run the install command again.