Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Autoprefixer doesn’t support Node v0.10.37 error

While trying localhost:3000 , it throws error as

ActionView::Template::Error (Autoprefixer doesn’t support Node v0.10.37. Update it.):

I have tried to update node, but there is not update available.

node -v # v8.1.3
nodejs -v # v0.10.37

Gemfile

gem 'bootstrap', '~> 4.1.3', and others

Gemfile.lock

autoprefixer-rails (9.1.1)
like image 519
petspanda D Avatar asked Aug 23 '18 07:08

petspanda D


People also ask

Does Autoprefixer support node V4?

Autoprefixer doesn’t support Node v4.8.2. Update it Bookmark this question. Show activity on this post. I have a Rails app running Rails 5.2.1 and Ruby 2.5.1. When I run the Rails server, I get the following error: Autoprefixer doesn’t support Node v4.8.2.

How to update the default version of NodeJS?

Using the nvm (node version manager) is the best option to update the default version of node. After successful installation, close the terminal and open a new terminal. List the version of nodejs available:

How to check the available version of NodeJS in Linux terminal?

After successful installation, close the terminal and open a new terminal. List the version of nodejs available: This will list the available versions of nodejs. Hope this helps as a step by step guide.

What does code 37 mean in Device Manager?

The Code 37 error is one of several Device Manager error codes that basically mean that the driver installed for the hardware device has failed in some way. The Code 37 error will almost always display in the following way:


2 Answers

I had a similar issue and was fixed by adding gem 'mini_racer' into your gemfile.

Hope this helps!

like image 123
German Avatar answered Nov 01 '22 06:11

German


The problem for me was that the autoprefixer was installed as a dependency of another package, but without specifying the version, so the installed version was 9.4.3, which had a conflict with my local Node installation.

I fixed it by adding an specific version for the package in my GemFile, and running bundle install

gem 'autoprefixer-rails', '~> 7.1.6'
like image 21
Luis Carlos Mejia Avatar answered Nov 01 '22 04:11

Luis Carlos Mejia