Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bower install don't get files in bower_components #2194

Closed
bgolubovic opened this issue Mar 2, 2016 · 11 comments
Closed

bower install don't get files in bower_components #2194

bgolubovic opened this issue Mar 2, 2016 · 11 comments

Comments

@bgolubovic
Copy link

Hi all,

After installing dependency, bower finish it. But there are not files actually, in folder bower_components.
Is bower sending files elsewhere or how does this works now?

Thank you.

@dprice000
Copy link

What repository are you trying to download? Are you using the standard install command?
bower install package_name

@bgolubovic
Copy link
Author

@dprice809
Any repository that I install (download) don't shows files physically in project folder 'bower_components'.
But dependencies are working. So it is getting the files from other place.
I just realize that this folder exist also in a root of local disk [E:] and there are files. I did not change anything. What should I do?
Do I need to change something in bower.json, or init bower again...?
Thank you.

@dprice000
Copy link

If you are installing a package you should not need to use bower init. bower init is reserved for when you are creating your own package. Are you installing a package or creating a package?

Bower install by default will install to what ever directory your console has selected. So you may have had the E: drive selected when you installed you packages.

@bgolubovic
Copy link
Author

@dprice809 Okay, about bower init it is clear. I know that. I am installing package. Console is in project directory, not in E: drive. Thank you.

@dprice000
Copy link

From my understanding the bower.json files are not specific about where to install a bower package. However, a .bowercc file could specify adirectory to install the package. If directory is defined as a FQD it may be able to define a specific drive to install a package. If you do not see any strange .bowercc files you may want to try a fresh install of bower.

@dprice000
Copy link

Also, see this file for .bowercc specification

@bgolubovic
Copy link
Author

@dprice809 I have .bowercc file in project. There is in it "directory" : "/bower_components". And I did not change it since project started, and as I said, it moves files itself to E:/bower_components. Project is in E:\***\****\Content\Off. Still there is ``E:**\Content\Off\bower_componentswith old dependencies. And every new install goes toE:****\Content\Off\bower_components`. Thank you.

@altyaper
Copy link

Probably you have the cwd option configured like that in the .bowerrc file, see this. If you have configured that, then you should remove the option.

@bgolubovic
Copy link
Author

@echavezNS No, I don't have. What I did to fix this issue is to set directory" : "/bower_components to directory" : "E:/***/****/Content/Off/bower_components in .bowerrc.

@benmann
Copy link
Member

benmann commented Mar 10, 2016

With that you probably overwrote an existing config. Bower looks in various places as described here in the docs. The .bowerrc in your cwd is always the strongest, so this is an absolutely valid solution.

I think this an individual case and will close for now. If others see this happening, let us know 🍰

@dm-grinko
Copy link

dm-grinko commented Jul 28, 2016

@bgolubovic I have the same issue. Try this: bower install --force-latest
It works for me. I read it here:
#866

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

5 participants