1
mirror of https://github.com/jakejarvis/dotfiles.git synced 2025-11-04 22:10:09 -05:00

nvm 🐌 -> volta

https://volta.sh/
This commit is contained in:
2021-08-07 18:13:59 -04:00
parent ad0839a1da
commit 49b8860694
5 changed files with 32 additions and 19 deletions

View File

@@ -2,25 +2,37 @@
set -euo pipefail
# fetch and install Volta (better nvm)
if ! command -v volta &> /dev/null
then
curl https://get.volta.sh | bash -s -- --skip-setup
fi
volta install node@lts
volta install node@latest # remove when LTS officially supports arm64
volta install npm@6 # having issues with npm@7 and volta
volta install yarn@1
volta list node
volta list npm
volta list yarn
# npm ls --global --parseable --depth=0 | awk '{gsub(/\/.*\//,"",$1); print}' | sort -u
packages=(
@11ty/eleventy
@ampproject/toolbox-cli
@babel/cli
@babel/core
@lhci/cli
autoprefixer
browserify
eslint
express
express-generator
firebase-tools
gatsby-cli
gitmoji-cli
gulp
is-up-cli
json-server
netlify-cli
newman
nodemon
npm-check-updates
pm2
@@ -32,13 +44,15 @@ packages=(
serve
standard
stylelint
superstatic
svgo
terser
vercel
webpack
webpack-cli
yo
)
for p in "${packages[@]}"; do
npm install --global "$p" || echo "$p not found"
done
volta list all