Hi. I am using Webpacker with my Rails app to write some ReactJS code. Webpacker needs Node.js.
On command line if I try to run the rails app with 'foreman start', I get this error:
$ foreman start
error An unexpected error occurred: "Unknown language key integrityNodeDoesntMatch"
I can fix this issue on command line by setting the right version for node using:
$ nvm use v8.9.1
$ foreman start <-- this runs now without any issues
But when I try to run the app with foreman from inside the RubyMine Run/Debug configurations, I get the same error. I tried to resolve the issue by setting the Node Interpreter to v8.9.1 in "Preferences/Languages & Frameworks/Node.js and NPM" but it did not solve the problem. I also tried to run a bash script (/usr/local/opt/nvm/nvm.sh use v8.9.1) before the foreman configuration runs but it didn't help either.
How can I fix this issue?