Failed to restore plugin "phonegap-plugin-barcodescanner".

The cordova-plugin-barcode-nativeios plugin you are using is a problem. It was last updated 5 years ago, and the GitHub repositories for it no longer exist. Just 5 people downloaded it last week.

Have you tried phonegap-plugins-barcodescanner? It was downloaded over 13,500 times.