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

Work around broken bower installation for old npm versions #6885

Merged
merged 2 commits into from
Mar 21, 2017

Conversation

Turbo87
Copy link
Member

@Turbo87 Turbo87 commented Mar 21, 2017

This PR:

  • checks the error message returned from npm install bower and displays a helpful error message if the known bug was hit

  • checks if the bower.json actually has any dependencies before trying to npm install bower so that the first case should become a rare edge case when used with a custom app blueprint that still includes bower dependencies

Resolves #6863

We can skip installing bower if `bower.json` exists but there are actually no dependencies inside
@Turbo87 Turbo87 added the bug label Mar 21, 2017
@Turbo87 Turbo87 requested a review from rwjblue March 21, 2017 21:37
@rwjblue
Copy link
Member

rwjblue commented Mar 21, 2017

@homu r+

@homu
Copy link
Contributor

homu commented Mar 21, 2017

📌 Commit a97b0cb has been approved by rwjblue

@homu homu merged commit a97b0cb into ember-cli:release Mar 21, 2017
homu added a commit that referenced this pull request Mar 21, 2017
Work around broken bower installation for old npm versions

This PR:

- checks the error message returned from `npm install bower` and displays a helpful error message if the known bug was hit

- checks if the `bower.json` actually has any dependencies before trying to `npm install bower` so that the first case should become a rare edge case when used with a custom app blueprint that still includes bower dependencies

Resolves #6863
@homu
Copy link
Contributor

homu commented Mar 21, 2017

⚡ Test exempted - status

@Turbo87 Turbo87 deleted the bower-issue branch March 21, 2017 23:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants