After installing grunt-contrib-imagemin ( npm install grunt-contrib-imagemin --save-dev
) running the command middleman build
or bundle exec middleman build
generates the below error:
C:\Users\skezo_000\gitHub\sym-site>middleman build
C:/Ruby200-x64/lib/ruby/2.0.0/pathname.rb:422:in `open': No such file or directory - node_modules/grunt-contrib-imagemin/node_modules/image-min/node_modules/jpegtran-bin/node_modules/bin-wrapper/node_modules/download/node_modules/decompress/node_modules/tar/node_modules/fstream/node_modules/graceful-fs/test (Errno::ENOENT)
from C:/Ruby200-x64/lib/ruby/2.0.0/pathname.rb:422:in `foreach'
from C:/Ruby200-x64/lib/ruby/2.0.0/pathname.rb:422:in `children'
from C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/middleman-core-3.2.2/lib/middleman-core/util.rb:126:in `block in all_files_under'
from C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/middleman-core-3.2.2/lib/middleman-core/util.rb:122:in `each'
from C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/middleman-core-3.2.2/lib/middleman-core/util.rb:122:in `flat_map'
from C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/middleman-core-3.2.2/lib/middleman-core/util.rb:122:in `all_files_under'
from C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/middleman-core-3.2.2/lib/middleman-core/util.rb:126:in `block in all_files_under'
from C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/middleman-core-3.2.2/lib/middleman-core/util.rb:122:in `each'
from C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/middleman-core-3.2.2/lib/middleman-core/util.rb:122:in `flat_map'
from C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/middleman-core-3.2.2/lib/middleman-core/util.rb:122:in `all_files_under'
from C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/middleman-core-3.2.2/lib/middleman-core/util.rb:126:in `block in all_files_under'
from C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/middleman-core-3.2.2/lib/middleman-core/util.rb:122:in `each'
from C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/middleman-core-3.2.2/lib/middleman-core/util.rb:122:in `flat_map'
from C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/middleman-core-3.2.2/lib/middleman-core/util.rb:122:in `all_files_under'
from C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/middleman-core-3.2.2/lib/middleman-core/util.rb:126:in `block in all_files_under'
from C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/middleman-core-3.2.2/lib/middleman-core/util.rb:122:in `each'
from C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/middleman-core-3.2.2/lib/middleman-core/util.rb:122:in `flat_map'
from C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/middleman-core-3.2.2/lib/middleman-core/util.rb:122:in `all_files_under'
from C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/middleman-core-3.2.2/lib/middleman-core/util.rb:126:in `block in all_files_under'
from C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/middleman-core-3.2.2/lib/middleman-core/util.rb:122:in `each'
from C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/middleman-core-3.2.2/lib/middleman-core/util.rb:122:in `flat_map'
from C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/middleman-core-3.2.2/lib/middleman-core/util.rb:122:in `all_files_under'
from C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/middleman-core-3.2.2/lib/middleman-core/util.rb:126:in `block in all_files_under'
from C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/middleman-core-3.2.2/lib/middleman-core/util.rb:122:in `each'
from C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/middleman-core-3.2.2/lib/middleman-core/util.rb:122:in `flat_map'
from C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/middleman-core-3.2.2/lib/middleman-core/util.rb:122:in `all_files_under'
from C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/middleman-core-3.2.2/lib/middleman-core/util.rb:126:in `block in all_files_under'
from C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/middleman-core-3.2.2/lib/middleman-core/util.rb:122:in `each'
from C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/middleman-core-3.2.2/lib/middleman-core/util.rb:122:in `flat_map'
from C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/middleman-core-3.2.2/lib/middleman-core/util.rb:122:in `all_files_under'
from C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/middleman-core-3.2.2/lib/middleman-core/util.rb:126:in `block in all_files_under'
from C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/middleman-core-3.2.2/lib/middleman-core/util.rb:122:in `each'
from C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/middleman-core-3.2.2/lib/middleman-core/util.rb:122:in `flat_map'
from C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/middleman-core-3.2.2/lib/middleman-core/util.rb:122:in `all_files_under'
from C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/middleman-core-3.2.2/lib/middleman-core/util.rb:126:in `block in all_files_under'
from C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/middleman-core-3.2.2/lib/middleman-core/util.rb:122:in `each'
from C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/middleman-core-3.2.2/lib/middleman-core/util.rb:122:in `flat_map'
from C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/middleman-core-3.2.2/lib/middleman-core/util.rb:122:in `all_files_under'
from C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/middleman-core-3.2.2/lib/middleman-core/util.rb:126:in `block in all_files_under'
from C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/middleman-core-3.2.2/lib/middleman-core/util.rb:122:in `each'
from C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/middleman-core-3.2.2/lib/middleman-core/util.rb:122:in `flat_map'
from C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/middleman-core-3.2.2/lib/middleman-core/util.rb:122:in `all_files_under'
from C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/middleman-core-3.2.2/lib/middleman-core/util.rb:126:in `block in all_files_under'
from C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/middleman-core-3.2.2/lib/middleman-core/util.rb:122:in `each'
from C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/middleman-core-3.2.2/lib/middleman-core/util.rb:122:in `flat_map'
from C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/middleman-core-3.2.2/lib/middleman-core/util.rb:122:in `all_files_under'
from C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/middleman-core-3.2.2/lib/middleman-core/util.rb:126:in `block in all_files_under'
from C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/middleman-core-3.2.2/lib/middleman-core/util.rb:122:in `each'
from C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/middleman-core-3.2.2/lib/middleman-core/util.rb:122:in `flat_map'
from C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/middleman-core-3.2.2/lib/middleman-core/util.rb:122:in `all_files_under'
from C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/middleman-core-3.2.2/lib/middleman-core/util.rb:126:in `block in all_files_under'
from C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/middleman-core-3.2.2/lib/middleman-core/util.rb:122:in `each'
from C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/middleman-core-3.2.2/lib/middleman-core/util.rb:122:in `flat_map'
from C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/middleman-core-3.2.2/lib/middleman-core/util.rb:122:in `all_files_under'
from C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/middleman-core-3.2.2/lib/middleman-core/util.rb:126:in `block in all_files_under'
from C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/middleman-core-3.2.2/lib/middleman-core/util.rb:122:in `each'
from C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/middleman-core-3.2.2/lib/middleman-core/util.rb:122:in `flat_map'
from C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/middleman-core-3.2.2/lib/middleman-core/util.rb:122:in `all_files_under'
from C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/middleman-core-3.2.2/lib/middleman-core/util.rb:126:in `block in all_files_under'
from C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/middleman-core-3.2.2/lib/middleman-core/util.rb:122:in `each'
from C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/middleman-core-3.2.2/lib/middleman-core/util.rb:122:in `flat_map'
from C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/middleman-core-3.2.2/lib/middleman-core/util.rb:122:in `all_files_under'
from C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/middleman-core-3.2.2/lib/middleman-core/util.rb:126:in `block in all_files_under'
from C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/middleman-core-3.2.2/lib/middleman-core/util.rb:122:in `each'
from C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/middleman-core-3.2.2/lib/middleman-core/util.rb:122:in `flat_map'
from C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/middleman-core-3.2.2/lib/middleman-core/util.rb:122:in `all_files_under'
from C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/middleman-core-3.2.2/lib/middleman-core/util.rb:126:in `block in all_files_under'
from C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/middleman-core-3.2.2/lib/middleman-core/util.rb:122:in `each'
from C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/middleman-core-3.2.2/lib/middleman-core/util.rb:122:in `flat_map'
from C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/middleman-core-3.2.2/lib/middleman-core/util.rb:122:in `all_files_under'
from C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/middleman-core-3.2.2/lib/middleman-core/util.rb:126:in `block in all_files_under'
from C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/middleman-core-3.2.2/lib/middleman-core/util.rb:122:in `each'
from C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/middleman-core-3.2.2/lib/middleman-core/util.rb:122:in `flat_map'
from C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/middleman-core-3.2.2/lib/middleman-core/util.rb:122:in `all_files_under'
from C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/middleman-core-3.2.2/lib/middleman-core/util.rb:126:in `block in all_files_under'
from C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/middleman-core-3.2.2/lib/middleman-core/util.rb:122:in `each'
from C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/middleman-core-3.2.2/lib/middleman-core/util.rb:122:in `flat_map'
from C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/middleman-core-3.2.2/lib/middleman-core/util.rb:122:in `all_files_under'
from C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/middleman-core-3.2.2/lib/middleman-core/util.rb:126:in `block in all_files_under'
from C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/middleman-core-3.2.2/lib/middleman-core/util.rb:122:in `each'
from C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/middleman-core-3.2.2/lib/middleman-core/util.rb:122:in `flat_map'
from C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/middleman-core-3.2.2/lib/middleman-core/util.rb:122:in `all_files_under'
from C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/middleman-core-3.2.2/lib/middleman-core/core_extensions/file_watcher.rb:134:in `block in reload_path'
from C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/middleman-core-3.2.2/lib/middleman-core/core_extensions/file_watcher.rb:127:in `chdir'
from C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/middleman-core-3.2.2/lib/middleman-core/core_extensions/file_watcher.rb:127:in `reload_path'
from C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/middleman-core-3.2.2/lib/middleman-core/core_extensions/file_watcher.rb:46:in `block in registered'
from C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/middleman-core-3.2.2/lib/vendored-middleman-deps/hooks-0.2.0/lib/hooks.rb:53:in `instance_exec'
from C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/middleman-core-3.2.2/lib/vendored-middleman-deps/hooks-0.2.0/lib/hooks.rb:53:in `block in run_hook_for'
from C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/middleman-core-3.2.2/lib/vendored-middleman-deps/hooks-0.2.0/lib/hooks.rb:49:in `each'
from C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/middleman-core-3.2.2/lib/vendored-middleman-deps/hooks-0.2.0/lib/hooks.rb:49:in `run_hook_for'
from C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/middleman-core-3.2.2/lib/vendored-middleman-deps/hooks-0.2.0/lib/hooks.rb:107:in `run_hook'
from C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/middleman-core-3.2.2/lib/middleman-core/core_extensions/request.rb:53:in `inst'
from C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/middleman-core-3.2.2/lib/middleman-core/cli/build.rb:93:in `shared_instance'
from C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/middleman-core-3.2.2/lib/middleman-core/cli/build.rb:62:in `build'
from C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/thor-0.18.1/lib/thor/command.rb:27:in `run'
from C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/thor-0.18.1/lib/thor/invocation.rb:120:in `invoke_command'
from C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/thor-0.18.1/lib/thor.rb:363:in `dispatch'
from C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/thor-0.18.1/lib/thor/base.rb:439:in `start'
from C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/middleman-core-3.2.2/lib/middleman-core/cli.rb:77:in `method_missing'
from C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/thor-0.18.1/lib/thor/command.rb:29:in `run'
from C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/thor-0.18.1/lib/thor/command.rb:128:in `run'
from C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/thor-0.18.1/lib/thor/invocation.rb:120:in `invoke_command'
from C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/thor-0.18.1/lib/thor.rb:363:in `dispatch'
from C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/thor-0.18.1/lib/thor/base.rb:439:in `start'
from C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/middleman-core-3.2.2/lib/middleman-core/cli.rb:22:in `start'
from C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/middleman-core-3.2.2/bin/middleman:18:in `<top (required)>'
from C:/Ruby200-x64/bin/middleman:23:in `load'
from C:/Ruby200-x64/bin/middleman:23:in `<main>'
If I uninstall grunt-contrib-imagemin ( npm uninstall grunt-contrib-imagemin --save-dev
) running the command middleman build
or bundle exec middleman build
works as expected.
Any reason why this would happen?