check npm with node for nvm
This commit is contained in:
parent
565f3024c1
commit
9b74522e21
|
@ -96,7 +96,7 @@ fi
|
|||
if [[ ! $(which oasis) ]]; then
|
||||
echo "INSTALL...."
|
||||
# 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
|
||||
source ~/.bashrc
|
||||
export NVM_DIR="$HOME/.nvm"
|
||||
|
|
Loading…
Reference in New Issue