Okay, so after a tip I got here: https://github.com/driftyco/ionic-bower/issues/24 I edited bower.json and changed
"ionic": "driftyco/ionic-bower#1.2.1"
to
"ionic": "driftyco/ionic-bower#1.2.1-nightly-1867"
`
I could not run ionic lib update
as it still throws the same error, but I could install ngCordova:
bower install ngCordova
and subsequently install the barcode scanner plugin.