rails -v: Rails 6.1.0
ruby -v: ruby 2.7.2p137 (2020-10-01 revision 5445e04352) [x64-mingw32]
I'm having this error when I try to run rails assets:precompile
rails aborted!
Errno::ENOEXEC: Exec format error - C:/Users/trynot/Desktop/prolife/bin/yarn --version
Tasks: TOP => assets:precompile => yarn:install
(See full trace by running task with --trace)
What I've tried:
I already uninstalled and reinstalled all my gems, tried to update all my gems, tried to generate a new project with the flags --skip-webpack-install, tried removing the file yarn from bin, and tried to reinstall yarn. Same problem!