1

I've just installed Yeoman, along with related dependencies (Karma, Grunt CLI, PhantomJS, Jasmine, etc.)

When running the AngularJS generator, I seem to be getting the following error:

bower EINVALID Failed to read Z:\bower.json
Warning: Error: Cannot find where you keep your Bower packages
Aborted due to warnings.

Some trouble shooting steps would be much appreciated. Thanks in advance for your help!

Aaron
  • 11
  • 1

2 Answers2

1

It seems to be a bad description in bower.json properties. I've tried sudo chown $user:$group as other user on stackoverflow suggested. If every command does not work neither a bower clean or bower install etc.etc., it means that he reads bower.json but since it's not well formatted it crashes. It could help to place or to confront the bower.json content with this

{
  "name": "angular",
  "version": "1.5.8",
  "license": "MIT",
  "main": "./angular.js",
  "ignore": [ ],
  "dependencies": {
  }
}

This is how I Fixed after all suggestions from internet failed.

Best regards

Bojan B
  • 2,091
  • 4
  • 18
  • 26
Fedeco
  • 846
  • 10
  • 28
1

I have got the same error, when used non-latin characteres in the name:

{
  "name": "ЙЦЖЩШ",
  "description": "",
  ...
}

Just use only latin characters.

bigsiter
  • 11
  • 2