Contents
Recently, I have been tossing about using Ubuntu 16.04, which has a large number of users on the Internet, to build a Linux-based development environment, and I am ready to learn later on the Linux platform. Then I will tell you how to install nodejs under Linux. There are many solutions on the Internet. Here I am just making a record, not that there is something special about my party.
First go to Official Website to download the corresponding version, here I am 64-bit
Execute the following command
mv node-v8.9.3-linux-x64.tar.xz /opt
cd /opt
tar -xvf node-v8.9.3-linux-x64.tar.xz
Execute the following command
cd node-v8.3.0-linux-x64
Execute the following command
ln -s /opt/node-v8.9.3-linux-x64/bin/node /usr/local/bin/nod
ln -s /opt/node-v8.9.3-linux-x64/bin/npm /usr/local/bin/npm
Execute the following command
node -v //
npm -v
At this point node and npm installation is complete
Recommended Posts