Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Replace node with nvm #456

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
14 changes: 13 additions & 1 deletion mac
Expand Up @@ -125,7 +125,7 @@ brew "qt"

# Programming languages
brew "libyaml" # should come after openssl
brew "node"
brew "nvm"
brew "rbenv"
brew "ruby-build"

Expand All @@ -134,6 +134,18 @@ brew "postgres", restart_service: true
brew "redis", restart_service: true
EOF

fancy_echo "Configuring Node ..."
nvm install stable
nvm alias default stable
# shellcheck disable=SC1090
. "$(brew --prefix nvm)/nvm.sh"

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This needs to come before nvm install stable or you won't be able to find the nvm command

append_to_zshrc '#NVM'
# shellcheck disable=SC2016
append_to_zshrc 'export NVM_DIR="$HOME/.nvm"' 1
# shellcheck disable=SC2016
append_to_zshrc '. "$(brew --prefix nvm)/nvm.sh"' 1


fancy_echo "Configuring Ruby ..."
find_latest_ruby() {
rbenv install -l | grep -v - | tail -1 | sed -e 's/^ *//'
Expand Down