Webpacker requires Node.js >= v6.4 and you are usi

2019-07-22 05:25发布

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

2条回答
我命由我不由天
2楼-- · 2019-07-22 05:48

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

查看更多
仙女界的扛把子
3楼-- · 2019-07-22 05:49

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

The solution of Fabio Castaldi worked for me too.

查看更多
登录 后发表回答