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:clean fails without Bowerfile #175

Closed
leschenko opened this issue Nov 9, 2015 · 5 comments
Closed

bower:clean fails without Bowerfile #175

leschenko opened this issue Nov 9, 2015 · 5 comments

Comments

@leschenko
Copy link

rake bower:clean fails without Bowerfile

Attempting to remove all but main files as specified by bower
rake aborted!
Errno::ENOENT: No such file or directory @ rb_sysopen - my_project_path/Bowerfile
my_rvm_path/gems/bower-rails-0.10.0/lib/bower-rails/dsl.rb:70:in initialize' my_rvm_path/gems/bower-rails-0.10.0/lib/bower-rails/dsl.rb:70:inopen'
my_rvm_path/gems/bower-rails-0.10.0/lib/bower-rails/dsl.rb:70:in eval_file' my_rvm_path/gems/bower-rails-0.10.0/lib/bower-rails/dsl.rb:10:inblock in evalute'
my_rvm_path/gems/bower-rails-0.10.0/lib/bower-rails/dsl.rb:10:in tap' my_rvm_path/gems/bower-rails-0.10.0/lib/bower-rails/dsl.rb:10:inevalute'
my_rvm_path/gems/bower-rails-0.10.0/lib/bower-rails/performer.rb:44:in dsl' my_rvm_path/gems/bower-rails-0.10.0/lib/bower-rails/performer.rb:199:inmain_files_for_component'
my_rvm_path/gems/bower-rails-0.10.0/lib/bower-rails/performer.rb:162:in block in remove_extra_files' my_rvm_path/gems/bower-rails-0.10.0/lib/bower-rails/performer.rb:149:ineach'
my_rvm_path/gems/bower-rails-0.10.0/lib/bower-rails/performer.rb:149:in remove_extra_files' my_rvm_path/gems/bower-rails-0.10.0/lib/tasks/bower.rake:74:inblock (3 levels) in <top (required)>'
my_rvm_path/gems/bower-rails-0.10.0/lib/bower-rails/performer.rb:36:in instance_exec' my_rvm_path/gems/bower-rails-0.10.0/lib/bower-rails/performer.rb:36:inblock in perform'
my_rvm_path/gems/bower-rails-0.10.0/lib/bower-rails/performer.rb:107:in block (2 levels) in perform_command' my_rvm_path/gems/bower-rails-0.10.0/lib/bower-rails/performer.rb:91:inchdir'
my_rvm_path/gems/bower-rails-0.10.0/lib/bower-rails/performer.rb:91:in block in perform_command' my_rvm_path/gems/bower-rails-0.10.0/lib/bower-rails/performer.rb:81:ineach'
my_rvm_path/gems/bower-rails-0.10.0/lib/bower-rails/performer.rb:81:in perform_command' my_rvm_path/gems/bower-rails-0.10.0/lib/bower-rails/performer.rb:35:inperform'
my_rvm_path/gems/bower-rails-0.10.0/lib/bower-rails/performer.rb:10:in perform' my_rvm_path/gems/bower-rails-0.10.0/lib/tasks/bower.rake:73:inblock (2 levels) in <top (required)>'
my_rvm_path/bin/ruby_executable_hooks:15:in eval' my_rvm_path/bin/ruby_executable_hooks:15:in

'
Tasks: TOP => bower:clean
(See full trace by running task with --trace)

Here is a workaround

BowerRails::Performer.class_eval do
  def main_files_for_component(name)
    []
  end
end
@JakeLaCombe
Copy link

I'm getting this issue to when running a deployment on Heroku.

@tejasbubane
Copy link

Getting the same issue.

⇒  rake bower:clean

Attempting to remove all but main files as specified by bower
rake aborted!
Errno::ENOENT: No such file or directory @ rb_sysopen - /Users/tejas/<path-to-my-project>/Bowerfile
⇒  bower --version
1.7.7
⇒  bundle exec gem list | grep bower
bower-rails (0.10.0)

@inlikealion
Copy link

inlikealion commented Jun 6, 2016

I'm getting this, too.

⇒ rake bower:clean

Attempting to remove all but main files as specified by bower
rake aborted!
Errno::ENOENT: No such file or directory @ rb_sysopen - /Users/baintonm/Documents/Sites/ui.redacted.com/Bowerfile
⇒ bower --version
1.7.9
⇒ bundle exec gem list | grep bower
bower-rails (0.10.0)

@chaitalipatel
Copy link

Any luck sorting out this issue?

@SergeyKishenin
Copy link
Collaborator

SergeyKishenin commented Jan 9, 2017

@chaitalipatel Have you tried v0.11.0. Seems like it was fixed in #190

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

No branches or pull requests

6 participants