OS | Package |
Linux | node-v8.4.0-linux-x64.tar.gz |
MacOS | node-v8.4.0-darwin-x64.tar.gz |
Windows | node-v8.4.0-win-x64.zip |
SunOS | node-v8.4.0-sunos-x64.tar.gz |
/usr/local/
. Replace the file name, if it is different from what you have downloaded./usr/local/nodejs/
. Provide user password if asked.~$ sudo mv node-v8.4.0-linux-x64/*/usr/local/nodejs/ |
/usr/local/nodejs/bin
to PATH environment variable. Provide user password if asked..bashrc
file and append the nodejs’ path at the end. To edit .bashrc, open a terminal and run the following command :.bashrc
file. $ export PATH=$PATH:/usr/local/nodejs/bin |
/usr/local/nodejs/bin
.verifyNode.js
and copy paste the following content to that file.console.log('Hi there! This is Node.js!') |
verifyNode.js
script file.