Skip to content

Commit

Permalink
Fix node setup
Browse files Browse the repository at this point in the history
  • Loading branch information
fortes committed Jan 19, 2024
1 parent 536359c commit a3e8c8e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
6 changes: 0 additions & 6 deletions scripts/setup_github_packages
Original file line number Diff line number Diff line change
Expand Up @@ -177,12 +177,6 @@ install_fnm() {
mkdir -p "$HOME/.local/completion.d"
fnm completions > "$HOME/.local/completion.d/fnm_completion"
echo "Complete!"

echo "Installing node LTS ... "
fnm install --lts

echo "Setting node version to LTS"
fnm default lts-latest
}

install_helix() {
Expand Down
8 changes: 7 additions & 1 deletion scripts/setup_machine
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,13 @@ install_apt_packages() {

install_node_packages() {
# Pick up `fnm`-provided paths on first run
. "$HOME/.profile"
. "$HOME/.bashrc"

echo "Installing node LTS ... "
fnm install --lts

echo "Setting node version to LTS"
fnm default lts-latest

echo "Installing global node packages"
grep -v "^#" "$HOME/dotfiles/scripts/node-packages" | xargs --no-run-if-empty \
Expand Down

0 comments on commit a3e8c8e

Please sign in to comment.