2021-09-28 10:09:04 +00:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
set -e
|
|
|
|
|
|
|
|
NVM_VERSION=$(get_package_version nvm)
|
|
|
|
|
|
|
|
curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | apt-key add -
|
|
|
|
|
|
|
|
apt-get update
|
|
|
|
apt-get install -y --no-install-recommends \
|
|
|
|
curl \
|
|
|
|
git \
|
|
|
|
apt-utils \
|
|
|
|
apt-transport-https
|
|
|
|
|
|
|
|
echo "deb https://dl.yarnpkg.com/debian/ stable main" | tee /etc/apt/sources.list.d/yarn.list
|
|
|
|
|
|
|
|
apt-get update
|
|
|
|
apt-get install -y --no-install-recommends \
|
|
|
|
nodejs \
|
|
|
|
yarn
|
|
|
|
|
2023-06-26 14:14:55 +00:00
|
|
|
curl -o - "https://raw.githubusercontent.com/nvm-sh/nvm/v${NVM_VERSION}/install.sh" | bash
|
2021-09-28 10:09:04 +00:00
|
|
|
rm -rf /var/lib/apt/lists/*
|