diff --git a/scripts/prepare-node14-yarn.bash b/scripts/prepare-node14-yarn.bash index f253862..2ce667f 100755 --- a/scripts/prepare-node14-yarn.bash +++ b/scripts/prepare-node14-yarn.bash @@ -358,12 +358,13 @@ yarn_site='https://dl.yarnpkg.com/debian' yarn_key_url="$yarn_site/pubkey.gpg" local_yarn_key="$keyring/yarnkey.gpg" +exec_cmd "curl -sL $yarn_key_url | gpg --dearmor | tee $local_yarn_key >/dev/null" +exec_cmd "echo 'deb [signed-by=$local_yarn_key] $yarn_site stable main' | tee /etc/apt/sources.list.d/yarn.list" + print_status """Run \`${bold}sudo apt-get install -y ${NODEPKG}${normal}\` to install ${NODENAME} and npm ## You may also need development tools to build native addons: sudo apt-get install gcc g++ make ## To install the Yarn package manager, run: - curl -sL $yarn_key_url | gpg --dearmor | sudo tee $local_yarn_key >/dev/null - echo \"deb [signed-by=$local_yarn_key] $yarn_site stable main\" | sudo tee /etc/apt/sources.list.d/yarn.list sudo apt-get update && sudo apt-get install yarn """