Home > Software engineering >  angular-file-saver is not installed
angular-file-saver is not installed

Time:04-29

Hi All Experts of Angularjs I am using bower install for my angular project

"file-saver.js": "^1.20150507.2",
"angular-file-saver": "^1.1.3",

I am getting error when bower install, FileSaver repository not found, I checked it in GitHub, This repository really was gone away.

https://github.com/Teleborder/FileSaver.js.git#~1.20150507.2

Help me!!! How can I fix this issue.

CodePudding user response:

same problem here. Just make this changes:

Add to your .bowerrc

"ignoredDependencies": [
    "file-saver.js"
 ]

Then in bower.json

"dependencies": {
   ...
   "file-saver": "2.0.4",
   ...
},
"overrides": {
   ...
    "angular-file-saver": {
      "dependencies": {},
      "main": ["dist/angular-file-saver.js"]
    },
    "file-saver": {
      "main": "dist/FileSaver.js"
    },
   ...
}

CodePudding user response:

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

This article will solve your problem.

I faced same problem and solved it.

  • Related