On my Elementary OS machine (an Ubuntu-based OS), after creating a new Ruby on Rails project with rails new yarntest
and loading it in RubyMine, I could not lau
I came across an answer on another question that mentioned this error message when running sudo yarn install
(i. e. in sudo mode). I tried running sudo yarn install
and could finally reproduce the error message outside of RubyMine's run config. Apparently, when running in sudo mode, the yarn
binary was outdated.
The solution is therefore to point RubyMine to the correct yarn
binary.
The easiest way to do that is to launch RubyMine from the terminal with rubymine
, as pointed out by Olivia. See the related JetBrains ticket.