Google Cloud : manually setup Nodejs in Ubuntu 16
This post describes how to manually setup nodejs in ubuntu 16
-
Login into your system. (probably AWS or Google cloud)
-
Download the nodeJs
- Visit https://nodejs.org/en/download/
- In terminal run command
wget https://nodejs.org/dist/v10.15.3/node-v10.15.3-linux-x64.tar.xz
- extract this tar.zx file using
tar -xvf node-v10.15.3-linux-x64.tar.xz
-
Add node binary to environment path
- open bash profile
vi ~/.profile
- append the node binary path to the $Path
PATH="$HOME/bin:$HOME/.local/bin:$PATH:/home/skdangbgr/node-v10.15.3-linux-x64/bin"
- now save the profile
- apply the changes to terminal run command
source ~/.profile
-
Running the node
cd ~
node
- Now node shell will be open
Now Nodejs is setup in your environment
Comments
Post a comment