Node.js easy installation in Linux (Deepin)
Published in
2 min readMar 12, 2018
Linux is awesome operating system and has a lot of distro . Deepin is as like mac os.
# create a directory nodejs
inside /usr/local/lib
# download nodejs desired version
- download
- move downloaded tar.xz file inside /usr/local/lib
- extrac the tar.xz file and rename as like
node-v8.9.4
# setup environment
cd ./etc/profile.d
ls
sudo touch nodejs-env.sh
sudo atom nodejs-env.sh
~ atom is my favourite editor you can use your editor .
- then nodejs-env.sh file automatically open atom editor
- copy and paste below code inside nodejs-env.sh and save
export NODEJS_HOME=/usr/local/lib/nodejs/node-v8.9.4
export PATH=$NODEJS_HOME/bin:$PATH
- restart you machine.
# Done
node -v
npm -v
code4mk @code4mk