So it really listened to me (I looked under the hood in the NPM package code to see if there was an unexpected end to the input error, but the error was my error).
The problem is in my file structure, I had an empty .bowerrc file, which I generated from the terminal by typing $ touch .bowerrc . Just add
{ "directory": "(your bower components folder here as valid JSON)" }
and ... the error has disappeared! I hope this saves someone as much trouble as it caused me.
source share