Khan
Khan

Reputation: 81

Cannot find the tailwindcss executable for x86_64-darwin-21

Add bin/dev to start foreman create bin/dev Compile initial Tailwind build run rails tailwindcss:build from "." ERROR: Cannot find the tailwindcss executable for x86_64-darwin-21 in /Users/khan/.rvm/gems/ruby-3.0.3/gems/tailwindcss-rails-2.0.2/exe If you're using bundler, please make sure you're on the latest bundler version:

gem install bundler bundle update --bundler

Then make sure your lock file includes this platform by running:

bundle lock --add-platform x86_64-darwin-21 bundle install

See bundle lock --help output for details.

Upvotes: 7

Views: 2792

Answers (1)

Devon
Devon

Reputation: 171

  1. Try add platform as the tips:
bundle lock --add-platform x86_64-darwin-21
bundle install
  1. Try unset force_ruby_platform
bundle config unset force_ruby_platform
# or
bundle config set --local force_ruby_platform false

bundle install

More information: https://github.com/rails/tailwindcss-rails

Upvotes: 17

Related Questions