Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Unable to resolve file-saver.js dependency file from bower install angular-file-saver

I'm using the following command - bower install angular-file-saver --save , which has internal dependency on bower file-saver.js#~1.20150507.2. This dependency is not able to download as this is not available at this git url - https://github.com/Teleborder/FileSaver.js.git#~1.20150507.2.

It is showing the following error - ECMDERR Failed to execute "git ls-remote --tags --heads https://github.com/Teleborder/FileSaver.js.git", exit code of #128 fatal. Clicking on that link gives me a 404 error.

I can use the command bower install FileSaver --save and it downloads fine but it won't resolve for the dependency of bower install angular-file-saver.

like image 602
PradeepKumar Avatar asked Dec 07 '25 09:12

PradeepKumar


1 Answers

I had the same issue,

Due to the aparently abandon of the original repo, I forked and create a new npm package ng-file-saver with the fix.

Basically y updated the FileSaver.js dependency, the rest of the code was no changed

https://www.npmjs.com/package/ng-file-saver

NPM

  • npm i ng-file-saver

BOWER

As Bower is deprecated, registering new Bower packages is not supported anymore. Neverthless you can install any GitHub repository as Bower package by putting full name in bower.json:

{
  "dependencies": {
    "angular-file-saver": "elquimeras/ng-file-saver#^1.1.4"
  }
}

You can install any dependency from github with CLI as well:

bower install elquimeras/ng-file-saver --save

like image 151
BlackSlash Avatar answered Dec 09 '25 13:12

BlackSlash



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!