Closed davehorton closed 8 years ago
This worked for me:
ericbidelman-macbookpro3:polymer-gmail ericbidelman$ npm -v
3.10.3
ericbidelman-macbookpro3:polymer-gmail ericbidelman$ node -v
v6.3.0
ericbidelman-macbookpro3:polymer-gmail ericbidelman$ bower -v
1.7.9
ericbidelman-macbookpro3:polymer-gmail ericbidelman$
The warning seems to be because bower does not like uppercase letters in the 'name' field in bower.json for some reason (https://github.com/bower/spec/blob/master/json.md#name).
However, regardless of the warning (even if I change the name to 'polymer-mail') I still don't get a bower_components folder.
Interestingly, I am using the same versions as you at this point:
MacBook-Pro-3:polymer-gmail dhorton$ npm -v
3.10.3
MacBook-Pro-3:polymer-gmail dhorton$ node -v
v6.3.0
MacBook-Pro-3:polymer-gmail dhorton$ bower -v
1.7.9
MacBook-Pro-3:polymer-gmail dhorton$ bower install
{}
I solved it by creating a simple .bowerrc in the project directory:
{
"directory": "bower_components"
}
Not sure if this is something about my environment, but 'bower install' (whether called directly, or via npm install) does not create a bower components directory, and I cannot make sense of the warning: