How to install bootstrap 5 and make it work with Ruby 2.7.2 + on Rails 6.1 +
Rails 6 follow webpacker, you don't need to install a gem, do this instead In…
Key words:
Ruby on Rails,node.js, webpack and stimulus,Ubuntu 20
problem to solve:
error tailwindcss@2.2.19: The engine “node” is incompatible with this module. Expected version “>=12.13.0”. Got “10.19.0”
how to fix?
if you run: sudo apt-get install -y nodejs, it doesn’t upgrade node.js from v10.19.0 to v12.13.0.
Follow following to upgrade node.js:
First remove nodejs using,
sudo apt-get purge –auto-remove nodejs
Then after, if curl is not installed then run the below command
sudo apt-get install curl
Then after run the below 2 commands,
curl -sL https://deb.nodesource.com/setup_12.x | sudo -E bash –
sudo apt-get install -y nodejs
Credits goes to Dymtro Chasovskyi and Avinash Antala.
See also https://stackoverflow.com/questions/60679889/update-node-to-v12-on-ubuntu