DEV Community

Discussion on: Rails 6 & Webpacker Settings for Production

Collapse
 
thomasconnolly profile image
Tom Connolly

I learned that I had to remove from my linux box the system version of node.js (i.e., the one you get thusly: sudo apt install node) and replace it with npm install node. I can't tell you why, but that is what fixed the incompatibility issue for me and I don't have to use the "--ignore-engines" flag.

Collapse
 
mtancoigne profile image
Manuel Tancoigne

--ignore-engines was something I faced too, and was due to i-dont-remember-which node package dependency having incorrect node version dependency leading to this error when the package requiring it was installed.

Version errors are unfortunately too common in the ecosystem...