Skip to content

Conversation

kiawizard
Copy link

Currently cssbundling does not work on Windows:

rake assets:precompile
The system cannot find the path specified.
The system cannot find the path specified.
The system cannot find the path specified.
The system cannot find the path specified.
rake aborted!
cssbundling-rails: No suitable tool found for installing JavaScript dependencies

Tasks: TOP => assets:precompile => css:build => css:install
(See full trace by running task with --trace)

The reason is checking for npm/yarn/etc with command -v which is Linux only way

@joshleblanc
Copy link

joshleblanc commented Jul 31, 2025

I've been running my own patch for this issue, leveraging MakeMakefile from the standard library, which I think is a stable platform agnostic way to find executables.

require 'mkmf'
MakeMakefile.find_executable(tool.to_s) # or MakeMakefile.find_executable0(tool.to_s) to omit the logging of find_executable

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

Successfully merging this pull request may close these issues.

2 participants