check npm with node for nvm

This commit is contained in:
poka 2020-05-13 23:27:29 +02:00
parent 565f3024c1
commit 9b74522e21
1 changed files with 1 additions and 1 deletions

View File

@ -96,7 +96,7 @@ fi
if [[ ! $(which oasis) ]]; then if [[ ! $(which oasis) ]]; then
echo "INSTALL...." echo "INSTALL...."
# Install nvm # Install nvm
if [[ ! $(which node) ]]; then if [[ ! $(which node) || ! $(which npm) ]]; then
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.35.2/install.sh | bash curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.35.2/install.sh | bash
source ~/.bashrc source ~/.bashrc
export NVM_DIR="$HOME/.nvm" export NVM_DIR="$HOME/.nvm"