This is an error with npm itself

185 error path git
186 error code ENOENT
187 error errno ENOENT
188 error syscall spawn git
189 error enoent Error while executing:
189 error enoent undefined ls-remote -h -t https://github.com/chroa/twitter-connect-plugin.git
189 error enoent
189 error enoent
189 error enoent spawn git ENOENT
190 error enoent This is related to npm not being able to find a file.
191 verbose exit [ 1, true ]

Do you have git installed?