xxxxxxxxxx
sudo apt-get install -y curl
curl -sL https://deb.nodesource.com/setup_20.x | sudo -E bash -
sudo apt-get install -y nodejs
xxxxxxxxxx
# Windows
winget install OpenJS.NodeJS
# or for LTS
winget install OpenJS.NodeJS.LTS
#-----------------------------------
# macOS
curl "https://nodejs.org/dist/latest/node-${VERSION:-$(wget -qO- https://nodejs.org/dist/latest/ | sed -nE 's|.*>node-(.*)\.pkg</a>.*|\1|p')}.pkg" > "$HOME/Downloads/node-latest.pkg" && sudo installer -store -pkg "$HOME/Downloads/node-latest.pkg" -target "/"
# or via brew
brew install node
#-----------------------------------
# Ubuntu/Debian
sudo apt-get install curl
curl -sL https://deb.nodesource.com/setup_13.x | sudo -E bash -
sudo apt-get install nodejs
#-----------------------------------
# Arch Linux
pacman -S nodejs npm
#-----------------------------------
# CentOS, Fedora and Red Hat Enterprise Linux
dnf module list nodejs # Gets list of available streams
dnf module install nodejs:<stream>
# e.g. dnf module install nodejs:12
#-----------------------------------
# Alpine
apk add nodejs-current
# or for LTS
apk add nodejs npm
xxxxxxxxxx
# Run powershel as administrator
# download and install Node.js
choco install nodejs-lts --version="20.17.0"
# verifies the right Node.js version is in the environment
node -v # should print `20`
# verifies the right npm version is in the environment
npm -v # should print `10.8.2`
$ curl -fsSL https://deb.nodesource.com/setup_19.x | sudo -E bash - &&\
$ sudo apt install -y nodejs
xxxxxxxxxx
curl -sL https://deb.nodesource.com/setup_12.x -o nodesource_setup.sh
sudo bash nodesource_setup.sh
sudo apt install nodejs -y
xxxxxxxxxx
# installs fnm (Fast Node Manager)
winget install Schniz.fnm
# configure fnm environment
fnm env --use-on-cd | Out-String | Invoke-Expression
# download and install Node.js
fnm use --install-if-missing 20
# verifies the right Node.js version is in the environment
node -v # should print `v20.16.0`
# verifies the right npm version is in the environment
npm -v # should print `10.8.1`
xxxxxxxxxx
sudo apt update
sudo apt install mysql-server
Accessing MySQL:
You can access the MySQL prompt with:
sudo mysql
Checking MySQL status:
sudo systemctl status mysql