-
-
Notifications
You must be signed in to change notification settings - Fork 59
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
Error: Cannot find module 'bower' #161
Comments
|
It appears that all scenarios are affected that don't use Bower at all because they rely on |
Ugh. Thanks for reporting. Why are we still attempting to resolve bower when it isn’t used for the scenario? |
I have a repro, working on a solution now. |
There are two reasons for that:
I've been working on patch as well. Want a diff? |
This would only affect the
Right, this is the real issue IMHO. We need to tweak depSet = this._getDependencySetAccountingForDeprecatedTopLevelKeys(depSet);
var needsInstall = depSet && Object.keys(depSet.dependencies).length + Object.keys(depSet.devDependencies).length > 0;
if (!needsInstall) {
return RSVP.resolve([]);
} |
Not exactly, the try:one command depends on the try-each-test task, which will always load all scenarios.
Since the problem is caused by _getDependencySetAccountingForDeprecatedTopLevelKeys I thought of fixing it like this:
|
Summarizing discussion + fix WIP with @rwjblue
|
Why would we want to add a bower dep even when there are not any bower scenarios? |
In typing out a reply, I realize that I was wrong on this point. The case we want to deal with is There are bower dependencies in scenario A, but not in scenario B. We were running into problems cleaning up in B, but we should just no-op in that case. We'll still be able to clean up in A because bower will have been installed, since there were bower dependencies. |
#157 appears to have broken CI for
ember-cli-shims
(see https://travis-ci.org/ember-cli/ember-cli-shims/jobs/300982718) and I assume probably for other addons too.ember-cli-shims
is running CI once per day, yesterday it worked and today it is broken with this error:/cc @kategengler @hjdivad @rwjblue @twokul
The text was updated successfully, but these errors were encountered: