From 265c3bee9a552ebb9a9f614c4542010fad41cef6 Mon Sep 17 00:00:00 2001 From: ddp Date: Mon, 24 May 2021 00:12:24 +0200 Subject: [PATCH] works better --- installnodejs.txt | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/installnodejs.txt b/installnodejs.txt index db19f85..3810394 100644 --- a/installnodejs.txt +++ b/installnodejs.txt @@ -1,2 +1,7 @@ -curl -fsSL https://deb.nodesource.com/setup_lts.x | sudo -E bash - -sudo apt-get install -y nodejs \ No newline at end of file +sudo apt-get install curl +sudo apt-get remove nodejs npm ## remove existing nodejs and npm packages +# Using Ubuntu +curl -fsSL https://deb.nodesource.com/setup_16.x | sudo -E bash - +curl -sL https://dl.yarnpkg.com/debian/pubkey.gpg | gpg --dearmor | sudo tee /usr/share/keyrings/yarnkey.gpg >/dev/null +echo "deb [signed-by=/usr/share/keyrings/yarnkey.gpg] https://dl.yarnpkg.com/debian stable main" | sudo tee /etc/apt/sources.list.d/yarn.list +sudo apt-get update && sudo apt-get install yarn