rstacruz / npm-pipeline-rails

Use npm as part of your Rails asset pipeline
95 stars 14 forks source link

fork() is not implemented on Windows #20

Open tom-sherman opened 7 years ago

tom-sherman commented 7 years ago

Hi, is it possible to get this working on a windows machine?

C:/tools/ruby23/lib/ruby/gems/2.3.0/gems/npm-pipeline-rails-1.8.0/lib/npm-pipeline-rails/railtie.rb:24:in `fork': fork() function is unimplemented on this machine (NotImplementedError)
        from C:/tools/ruby23/lib/ruby/gems/2.3.0/gems/npm-pipeline-rails-1.8.0/lib/npm-pipeline-rails/railtie.rb:24:in `background'
        from C:/tools/ruby23/lib/ruby/gems/2.3.0/gems/npm-pipeline-rails-1.8.0/lib/npm-pipeline-rails/railtie.rb:67:in `block (2 levels) in <class:Railtie>'
        from C:/tools/ruby23/lib/ruby/gems/2.3.0/gems/npm-pipeline-rails-1.8.0/lib/npm-pipeline-rails/railtie.rb:66:in `each'
        from C:/tools/ruby23/lib/ruby/gems/2.3.0/gems/npm-pipeline-rails-1.8.0/lib/npm-pipeline-rails/railtie.rb:66:in `block in <class:Railtie>'
        from C:/tools/ruby23/lib/ruby/gems/2.3.0/gems/railties-5.0.3/lib/rails/initializable.rb:30:in `instance_exec'
        from C:/tools/ruby23/lib/ruby/gems/2.3.0/gems/railties-5.0.3/lib/rails/initializable.rb:30:in `run'
        from C:/tools/ruby23/lib/ruby/gems/2.3.0/gems/railties-5.0.3/lib/rails/initializable.rb:55:in `block in run_initializers'
        from C:/tools/ruby23/lib/ruby/2.3.0/tsort.rb:228:in `block in tsort_each'
        from C:/tools/ruby23/lib/ruby/2.3.0/tsort.rb:350:in `block (2 levels) in each_strongly_connected_component'
        from C:/tools/ruby23/lib/ruby/2.3.0/tsort.rb:431:in `each_strongly_connected_component_from'
        from C:/tools/ruby23/lib/ruby/2.3.0/tsort.rb:349:in `block in each_strongly_connected_component'
        from C:/tools/ruby23/lib/ruby/2.3.0/tsort.rb:347:in `each'
        from C:/tools/ruby23/lib/ruby/2.3.0/tsort.rb:347:in `call'
        from C:/tools/ruby23/lib/ruby/2.3.0/tsort.rb:347:in `each_strongly_connected_component'        from C:/tools/ruby23/lib/ruby/2.3.0/tsort.rb:226:in `tsort_each'
        from C:/tools/ruby23/lib/ruby/2.3.0/tsort.rb:205:in `tsort_each'
        from C:/tools/ruby23/lib/ruby/gems/2.3.0/gems/railties-5.0.3/lib/rails/initializable.rb:54:in `run_initializers'
        from C:/tools/ruby23/lib/ruby/gems/2.3.0/gems/railties-5.0.3/lib/rails/application.rb:352:in `initialize!'
        from C:/Users/Tom/Documents/jooktube/config/environment.rb:5:in `<top (required)>'
        from C:/Users/Tom/Documents/jooktube/config.ru:3:in `require_relative'
        from C:/Users/Tom/Documents/jooktube/config.ru:3:in `block in <main>'
        from C:/tools/ruby23/lib/ruby/gems/2.3.0/gems/rack-2.0.3/lib/rack/builder.rb:55:in `instance_eval'
        from C:/tools/ruby23/lib/ruby/gems/2.3.0/gems/rack-2.0.3/lib/rack/builder.rb:55:in `initialize'
        from C:/Users/Tom/Documents/jooktube/config.ru:in `new'
        from C:/Users/Tom/Documents/jooktube/config.ru:in `<main>'
        from C:/tools/ruby23/lib/ruby/gems/2.3.0/gems/rack-2.0.3/lib/rack/builder.rb:49:in `eval'
        from C:/tools/ruby23/lib/ruby/gems/2.3.0/gems/rack-2.0.3/lib/rack/builder.rb:49:in `new_from_string'
        from C:/tools/ruby23/lib/ruby/gems/2.3.0/gems/rack-2.0.3/lib/rack/builder.rb:40:in `parse_file'
        from C:/tools/ruby23/lib/ruby/gems/2.3.0/gems/rack-2.0.3/lib/rack/server.rb:319:in `build_app_and_options_from_config'
        from C:/tools/ruby23/lib/ruby/gems/2.3.0/gems/rack-2.0.3/lib/rack/server.rb:219:in `app'
        from C:/tools/ruby23/lib/ruby/gems/2.3.0/gems/railties-5.0.3/lib/rails/commands/server.rb:84:in `app'
        from C:/tools/ruby23/lib/ruby/gems/2.3.0/gems/rack-2.0.3/lib/rack/server.rb:354:in `wrapped_app'
        from C:/tools/ruby23/lib/ruby/gems/2.3.0/gems/railties-5.0.3/lib/rails/commands/server.rb:148:in `log_to_stdout'
        from C:/tools/ruby23/lib/ruby/gems/2.3.0/gems/railties-5.0.3/lib/rails/commands/server.rb:102:in `start'
        from C:/tools/ruby23/lib/ruby/gems/2.3.0/gems/railties-5.0.3/lib/rails/commands/commands_tasks.rb:90:in `block in server'
        from C:/tools/ruby23/lib/ruby/gems/2.3.0/gems/railties-5.0.3/lib/rails/commands/commands_tasks.rb:85:in `tap'
        from C:/tools/ruby23/lib/ruby/gems/2.3.0/gems/railties-5.0.3/lib/rails/commands/commands_tasks.rb:85:in `server'
        from C:/tools/ruby23/lib/ruby/gems/2.3.0/gems/railties-5.0.3/lib/rails/commands/commands_tasks.rb:49:in `run_command!'
        from C:/tools/ruby23/lib/ruby/gems/2.3.0/gems/railties-5.0.3/lib/rails/commands.rb:18:in `<top (required)>'
        from bin/rails:4:in `require'
        from bin/rails:4:in `<main>'