guppy icon indicating copy to clipboard operation
guppy copied to clipboard

Guppy thinks node is not installed

Open pitops opened this issue 6 years ago • 15 comments

Describe the bug Guppy thinks i do not have Node installed but using node -v in terminal, I have v10.12.0 installed.

Guppy opens up the dialog where it requires for node to be installed.

NOTE: tried Guppy 0.2.0 as well, and that doesn't work either. But no message that i need to have node installed.

To Reproduce Downloaded the latest v0.3.0 version. Put to applications folder Run

Expected behavior Guppy to be usable

Environment (please complete the following information):

  • OS: MacOS
  • Version: 0.3.0
  • Node version: v10.12.0

pitops avatar Nov 01 '18 15:11 pitops

I had the same problem with v0.3.0 on OSX, and was able to work around it by copying the nvm initialization lines from my ~/.bash_profile to my ~/.bashrc. If you are not using nvm to manage node versions, I think you may just need to make sure your globally installed node is included in the PATH defined in your ~/.bashrc.

quarklemotion avatar Nov 01 '18 20:11 quarklemotion

@quarklemotion I followed your advise in the following way

I do not use nvm but doing the following worked. I was using ~/.bash_profile. But i re-exported PATH in ~/.bashrc and it worked.

export PATH=$PATH

This is weird though because mac finds the node in path using ~/.bash_profile apparently whereas Guppy uses ~/.bashrc.

Any explanation?

pitops avatar Nov 01 '18 21:11 pitops

@pitops You should put bash ~/.bashrc in your ~/.bash_profile and remove any duplicate code from your ~/.bash_profile.

aleclarson avatar Nov 02 '18 15:11 aleclarson

@aleclarson you tell me what to do but you do not tell me why to do it.

pitops avatar Nov 03 '18 16:11 pitops

@pitops Sorry, are you aware of the differences between the two? If you want to avoid duplicating the export $PATH code in both files, you can call bash ~/.bashrc from your ~/.bash_profile. The reason you evaluate ~/.bashrc from ~/.bash_profile (and not vice versa) is because a "login shell" (using .bash_profile) may choose to inherit the environment of a "non-login shell" (using .bashrc), but the opposite makes no sense. Hope that helps (if you even cared for help). 👍

aleclarson avatar Nov 03 '18 17:11 aleclarson

@aleclarson Thats exactly the answer I was looking for, now I understand the why, thank you

pitops avatar Nov 03 '18 20:11 pitops

Also seeing this. I'm using n to manage node but it should still work if it loads the profile files correctly. I've seen that fix-path has fixed issues like this in the past.

davej avatar Jan 22 '19 17:01 davej

I'm having the same issue. I don't seem to have a ~/.bashrc or a ~/.bash_profile. Just a ~/.bash_history and ~/.bash_sessions.

Is there a way I can export something somewhere? Should I just create a ~/.bashrc manually and export my PATH there?

Looks like a great program, and I'm eager to try it out!

Machine Specs:

MacOS: v10.14.2 Node: v8.11.3 NPM: v6.5.0

actuallyReallyAlex avatar Feb 01 '19 15:02 actuallyReallyAlex

@alexlee-dev if you don't have a .bashrc then yeah create one, and do what i did above

pitops avatar Feb 01 '19 15:02 pitops

Thanks @pitops , that worked. Good simple fix.

actuallyReallyAlex avatar Feb 01 '19 16:02 actuallyReallyAlex

Damn Guppy is pretty cool now that I can use it!

actuallyReallyAlex avatar Feb 01 '19 16:02 actuallyReallyAlex

@alexlee-dev glad that worked for you. Yeah Guppy is pretty useful

pitops avatar Feb 01 '19 17:02 pitops

Having the same issue but I'm using .zsh with oh-my-zsh instead of bash. Tried repeating steps talked about in this thread in my .zshrc file but no luck.

Versions Running: nvm 0.33.11 node 10.16.0 (set as default) npm 6.9.0

SoftwareBlair avatar Aug 07 '19 17:08 SoftwareBlair

Having the same issue but I'm using .zsh with oh-my-zsh instead of bash. Tried repeating steps talked about in this thread in my .zshrc file but no luck.

Versions Running: nvm 0.33.11 node 10.16.0 (set as default) npm 6.9.0

Just create a ~/.bashrc file and add export PATH=$PATH.

VuongVu avatar Aug 08 '19 02:08 VuongVu

I have tried to follow all the advice on this thread but I can't get guppy to recognize my node installation.

gaa23 avatar May 04 '21 23:05 gaa23