From 10cc6fb935db995b97482174778ff44c01f07c2e Mon Sep 17 00:00:00 2001 From: Paul Walker Date: Thu, 20 May 2021 11:47:48 +0100 Subject: [PATCH] install: add nvm, use that to install yarn --- install | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/install b/install index e948585..f1095d0 100755 --- a/install +++ b/install @@ -119,6 +119,13 @@ if [ ! -d ~/.tmux/plugins/tpm ] ; then fi fi -# TODO - install node? +# Install nvm. +curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.38.0/install.sh | bash + +# We can't stop nvm appending to bashrc, but we don't need it - the variables nvm writes to .bashrc are already in +# ~/.bashrc.d/nvm.bash +cp bashrc bashrc-bk +nvm install node && nvm use node && npm i -g yarn +cp bashrc-bk bashrc ./install-vim