Ask A Question


You’re not receiving notifications from this thread.

Webpacker requires Node.js >= 6.0.0 and you are using 0.10.30

Simon Cooper asked in General

I've got into bit of a mess. Posted this over on SO too, but no answers of use over there.

I've added Webpacked so I can install React.js. However, I think I've somehow buggered up my PATH and bash profile and I can't seem to resolve it.

Simons-MBP:~ Simon$ /usr/bin/ruby -e "$(curl -fsSL"
-bash: curl: command not found
Simons-MBP:~ Simon$ open .profile
-bash: open: command not found

Completely lost at this stage.


Sounds like you messed up your PATH variable. You might try:

export PATH=/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin

That should reset you somewhere normal and then you can go fix your bash profile.


Thanks Chris.

I've been able to open my profile $ open .profile from the terminal, and now have the following:


(No idea how that Postgres got there.)

However, the main issue I was trying to solve is still persisting. When trying to upload my app to heroku, it fails due to Webpacker requires Node.js >= 6.0.0 and you are using 0.10.30 I've got a fresh install of node.js and I have no problems running my app locally.

Should I be updating the $PATH somewhere else?


Turned out it was actually a Heroku issue. I just needed to add a node buildback.

Join the discussion
Create an account Log in

Want to stay up-to-date with Ruby on Rails?

Join 76,990+ developers who get early access to new tutorials, screencasts, articles, and more.

    We care about the protection of your data. Read our Privacy Policy.

    Screencast tutorials to help you learn Ruby on Rails, Javascript, Hotwire, Turbo, Stimulus.js, PostgreSQL, MySQL, Ubuntu, and more. Icons by Icons8

    © 2023 GoRails, LLC. All rights reserved.