Ask A Question

Notifications

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 https://raw.githubusercontent.com/Homebrew/install/master/install)"
-bash: curl: command not found
Simons-MBP:~ Simon$ open .profile
-bash: open: command not found

Completely lost at this stage.

Reply

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.

Reply

Thanks Chris.

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

PATH="/Applications/Postgres.app/Contents/Versions/latest/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:$PATH"

(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?

Reply

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

Reply
Join the discussion
Create an account Log in

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

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

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