RubyMine's run config results in error that “Yarn requires Node.js 4.0” on Ubuntu

前端 未结 1 1656
轻奢々
轻奢々 2021-01-15 01:06

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

相关标签:
1条回答
  • 2021-01-15 01:58

    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.

    0 讨论(0)
提交回复
热议问题