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

别来无恙 提交于 2019-12-11 05:25:23

问题


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


回答1:


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




回答2:


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

The solution of Fabio Castaldi worked for me too.



来源:https://stackoverflow.com/questions/45844058/webpacker-requires-node-js-v6-4-and-you-are-using-v5-4-0

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!