How to Linux path environment variable – Add /usr/local/nodejs/bin to the PATH environment variable.

0
95

Download and extract the archive node-v6.3.1-osname.tar.gz into /Downloads, and then finally move extracted files into /usr/local/nodejs directory. For example:

Then Follow

Add /usr/local/nodejs/bin to the PATH environment variable.

OS Output
Linux export PATH=$PATH:/usr/local/nodejs/bin
Mac export PATH=$PATH:/usr/local/nodejs/bin
FreeBSD export PATH=$PATH:/usr/local/nodejs/bin

 

Using Linux PATH variable:

Adding a new directory into PATH variable

From time to time you may need to add new directory into your PATH scope. The following example adds new directory /usr/local/nodejs into PATH variable: