I'm a brand new to Linux so this may be a rookie question...
On a new installation of Ubuntu 18.04 LTS I want to install NodeJS. I ran node --version
to verify that it is not installed:
Command 'node' not found, but can be installed with:
sudo apt install nodejs
So, it's not installed and the terminal output recommends how to install it.
Some other online sources suggest using wget
or curl
to install it like so:
# using wget
wget https://nodejs.org/dist/v12.13.1/node-v12.13.1-linux-x64.tar.xz
# using curl
curl -o node-v12.13.1-linux-x64.tar.xz https://nodejs.org/dist/v12.13.1/node-v12.13.1-linux-x64.tar.xz
# extract
tar xf node-v12.13.1-linux-x64.tar.xz
Are there good reasons to use wget
or curl
instead of apt install
?