Skip to content
New issue

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

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

Already on GitHub? # to your account

Projects with both a package.json and bower.json will only install npm dependencies when yarn is invoked #898

Closed
devinus opened this issue Oct 12, 2016 · 7 comments
Labels

Comments

@devinus
Copy link

devinus commented Oct 12, 2016

Do you want to request a feature or report a bug? Bug

What is the current behavior?

yarn install in a project with both a package.json and bower.json will only install npm dependencies.

What is the expected behavior?

Install both npm and bower dependencies at once.

Please mention your node.js, yarn and operating system version.
Node.js: v6.7.0
Yarn: v0.15.1
macOS: v10.11.6

@RustyToms
Copy link
Contributor

duplicate of #665

@sombriks
Copy link

have same issue bower got wiped out.

gladly bower install fixes it all

@Vishal-Isharani
Copy link

also same issue here bower_components and also bower.json got wiped out
have to install bower_components manually using bower

@bbak
Copy link

bbak commented Oct 19, 2016

Similar here on Win10 (14393), Node 6.6.0 (x64), yarn 0.16.0: package.json is processed, bower.json is untouched, but bower_components is empty (pruned) after yarn install

@omnisite
Copy link

If you add the following to package.json, bower install will be called and it works. It is a workaround though:

`"scripts": {
    "postinstall": "bower install"
}`

@tigerhawkvok
Copy link

at a minimum, not wiping the bower_components directory would do. (re-running bower install, without a lock file, has the same issues as yarn tries to fix vs npm).

@sebmck
Copy link
Contributor

sebmck commented Oct 26, 2016

We've removed support for Bower, see #1441.

@sebmck sebmck closed this as completed Oct 26, 2016
@wyze wyze removed the needs triage label Nov 10, 2016
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
Projects
None yet
Development

No branches or pull requests

10 participants