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

feat: Use NVM for Node instead of brew #11

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open

feat: Use NVM for Node instead of brew #11

wants to merge 4 commits into from

Conversation

robtarr
Copy link

@robtarr robtarr commented Aug 5, 2018

  • Install NVM
  • Uninstall brew installed Node
  • Install Node with NVM

- Install NVM
- Uninstall brew installed Node
- Install Node with NVM
Copy link

@cromwellryan cromwellryan left a comment

Choose a reason for hiding this comment

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

One question, doesn't need addressed here.
One formatting thing with the spaces.

I'm good to merge after that.

Just realized I didn't run it 🤦‍♂️

Here's where I'm at:

  1. looks like there is some thing weird happening with npm right after install of nvm
  2. for some reason the install is failing. it's not clear what that is though.

image

oddly, brew list still shows all the node@ versions, including node@4 even after the cleanup.

mac Outdated
@@ -59,6 +59,13 @@ brew_uninstall() {
fi
}

brew_cleanup() {

Choose a reason for hiding this comment

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

👍

mac Outdated
brew_cleanup() {
if brew_is_installed "$1"; then
fancy_echo "Cleaning up %s ..." "$1"
brew cleanup "$@"

Choose a reason for hiding this comment

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

Should we replace brew_uninstall with this? Kinda seems like cleanup is better.

Choose a reason for hiding this comment

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

I notice 2 different references for the parameter $1 and $@... maybe that's why the cleanup isn't happening?

mac Outdated
# Install NVM
if ! command -v nvm >/dev/null; then
fancy_echo "Installing NVM ..."
curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.33.11/install.sh | $SHELL

Choose a reason for hiding this comment

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

Not a biggie, but there's a weird extra few spaces before $SHELL. ¯_(ツ)_/¯

Kinda sucks they don't have a stable tag 😞

mac Outdated
export NVM_DIR="$HOME/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh"
else
fancy_echo "NVM already installed. Skipping ..."bash ""

Choose a reason for hiding this comment

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

what's the bash "" at the end?

@kaseybon
Copy link
Member

@robtarr I get this when I run the script:
screen shot 2018-10-29 at 1 24 46 pm

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants