зеркало из https://github.com/mozilla/kitsune.git
16 строки
601 B
Bash
Executable File
16 строки
601 B
Bash
Executable File
# See https://github.com/nodesource/distributions#debian-and-ubuntu-based-distributions
|
|
|
|
NODE_MAJOR=16
|
|
|
|
# Download and import the Nodesource GPG key
|
|
apt-get install -y ca-certificates curl gnupg
|
|
mkdir -p /etc/apt/keyrings
|
|
curl -fsSL https://deb.nodesource.com/gpgkey/nodesource-repo.gpg.key | gpg --dearmor -o /etc/apt/keyrings/nodesource.gpg
|
|
|
|
# Create deb repository
|
|
echo "deb [signed-by=/etc/apt/keyrings/nodesource.gpg] https://deb.nodesource.com/node_$NODE_MAJOR.x nodistro main" | tee /etc/apt/sources.list.d/nodesource.list
|
|
|
|
# Run Update and Install
|
|
apt-get update
|
|
apt-get install nodejs npm -y
|