Skip to content

Building new rails app with --css=bootstrap fails #158

@NielsKSchjoedt

Description

@NielsKSchjoedt

Running: rails-new --rails-version=8.0.0.beta1 my_app --edge --devcontainer --database=postgresql --css=bootstrap with the latest raises an error in the installation flow:
(using the latest: https://github.com/rails/rails-new/releases/tag/v0.4.1)

(...)
    Add bin/dev to start foreman
       force      bin/dev
  Install Bootstrap with Bootstrap Icons, Popperjs/core and Autoprefixer
      create    app/assets/stylesheets/application.bootstrap.scss
         run    yarn add sass bootstrap bootstrap-icons @popperjs/core postcss postcss-cli autoprefixer nodemon from "."
      insert    config/initializers/assets.rb
  Appending Bootstrap JavaScript import to default entry point
      append    app/javascript/application.js
  Pin Bootstrap
      append    config/importmap.rb
      insert    config/initializers/assets.rb
      append    config/initializers/assets.rb
bin/rails aborted!
Rails::Generators::Error: The template [/usr/local/bundle/gems/cssbundling-rails-1.4.1/lib/install/bootstrap/install.rb] could not be loaded. Error: No such file or directory - npx (Rails::Generators::Error)


Caused by:
Errno::ENOENT: No such file or directory - npx (Errno::ENOENT)

Tasks: TOP => app:template
(See full trace by running task with --trace)
         run  bundle binstubs kamal
         run  bundle exec kamal init
Created configuration file in config/deploy.yml
Created .kamal/secrets file
Created sample hooks in .kamal/hooks
       force  .kamal/secrets
       force  config/deploy.yml
       rails  solid_cache:install solid_queue:install solid_cable:install
      create  config/cache.yml
      create  db/cache_schema.rb
        gsub  config/environments/production.rb
      create  config/queue.yml
      create  config/recurring.yml
      create  db/queue_schema.rb
      create  bin/jobs
        gsub  config/environments/production.rb
      create  db/cable_schema.rb
       force  config/cable.yml

What's up here and how do I resolve it?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions