Fabio Castaldi
Fabio Castaldi

Reputation: 29

Webpacker requires Node.js >= v6.4 and you are using v5.4.0

I'm trying to install rails webpacker with the command:

rails webpacker:install

but i got the error: Webpacker requires Node.js >= v6.4 and you are using v5.4.0

But typing nodejs --version returns: v8.4.0

Upvotes: 1

Views: 2595

Answers (1)

Fabio Castaldi
Fabio Castaldi

Reputation: 29

After 1h i just got my answer. The following command will do the trick:

sudo ln -sf /usr/bin/nodejs /usr/local/bin/node

Now it works

Upvotes: 1

Related Questions