Skip to content

Commit

Permalink
update install scritps
Browse files Browse the repository at this point in the history
  • Loading branch information
FinalAngel committed Dec 14, 2023
1 parent 246b275 commit 1ff1bf0
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 17 deletions.
17 changes: 6 additions & 11 deletions node/install
Original file line number Diff line number Diff line change
Expand Up @@ -17,18 +17,15 @@ fi
npm_install () {
if test ! $(which $1); then
if test $(which npm); then
npm install $2 -g --loglevel=silent
npm install $2 -g --loglevel=silent --force
success "Installed npm package $2"
fi
fi
}

# install npm packages globally
npm_install "browser-sync" "browser-sync"
npm_install "gulp" "gulp"
npm_install "gatsby" "gatsby-cli"
npm_install "npm-check-updates" "npm-check-updates"
npm_install "typescript" "typescript"
# npm_install "npm-check-updates" "npm-check-updates"
# npm_install "typescript" "typescript"

nvm_install () {
# make sure nvm command is available
Expand All @@ -44,11 +41,9 @@ nvm_install () {
}

# install needed npm versions
nvm_install 6.17.0
nvm_install 10.15.1
nvm_install 12.13.0
nvm_install 12.18.0
nvm_install 14.15.1
nvm_install 12
nvm_install 18
nvm_install 21

# run updates
source "$DIR/node/update"
4 changes: 2 additions & 2 deletions node/update
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ source "$DIR/utils/index"

info "Update \033[0;37m[node]\033[0m"

npm update -g > /dev/null 2>&1
npm update -g > /dev/null
success "Updated npm"

npm install npm -g > /dev/null 2>&1
npm install npm -g > /dev/null
success "Updated global npm packages"
4 changes: 0 additions & 4 deletions python/install
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,4 @@ if test $(which python3); then
success "Black successfully installed"
# docutils, rstcheck
export PIP_REQUIRE_VIRTUALENV=true

curl -sSL https://raw.githubusercontent.com/python-poetry/poetry/master/get-poetry.py | python
source ~/.poetry/env
success "Successfully installed poetry"
fi

0 comments on commit 1ff1bf0

Please sign in to comment.