3

I'm using the Adafruit Webide and logged into my rpi as webide@raspberrypi

I'm trying to add the directory of my node installation to the $PATH but I can't do it.

Every time I reboot and try env I get nothing.

I've tried adding the directory to /etc/profile and /home/webide/.bash_profile but neither work.

Any ideas what I'm doing wrong?

PATH=NODE_JS_HOME=/usr/share/adafruit/webide/repositories/node-v0.10.2-linux-arm-pi                                                                            
PATH=$PATH:$NODE_JS_HOME/bin                                                                                                                                      
export PATH 
user1714819
  • 43
  • 1
  • 3

1 Answers1

2
PATH=NODE_JS_HOME=/usr/share/adafruit/webide/repositories/node-v0.10.2-linux-arm-pi                                                                            

Here you went wrong. It will not work with multiple equals signs. Please try

NODE_JS_HOME=/usr/share/adafruit/webide/repositories/node-v0.10.2-linux-arm-pi  
PATH=$PATH:$NODE_JS_HOME

EDIT:

If the new PATH is exported via .bash_profile, the changes are not effective immediately. Try

source .bash_profile