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

Homebrew installation of NVM is no longer supported. #294

Open
ryanblakeley opened this issue Dec 22, 2017 · 1 comment
Open

Homebrew installation of NVM is no longer supported. #294

ryanblakeley opened this issue Dec 22, 2017 · 1 comment

Comments

@ryanblakeley
Copy link

From creationix/nvm:

Homebrew installation is not supported.

@ryanblakeley
Copy link
Author

ryanblakeley commented Dec 28, 2017

My current solution looks like this:

node/path.zsh

# Clone the zsh-nvm plugin (https://github.com/lukechilds/zsh-nvm#manually)
if ! [[ -a ~/.zsh-nvm ]]
then
  git clone https://github.com/lukechilds/zsh-nvm.git ~/.zsh-nvm
fi

# Load the zsh-nvm plugin
if [[ -a ~/.zsh-nvm ]]
then
  source ~/.zsh-nvm/zsh-nvm.plugin.zsh
fi

# TODO: Add the better npm completion plugin

# Clone the better npm completion plugin (https://github.com/lukechilds/zsh-better-npm-completion)
# if ! [[ -a ~/.zsh-better-npm-completion ]]
# then
  # git clone https://github.com/lukechilds/zsh-better-npm-completion.git ~/.zsh-better-npm-completion
# fi

# FIX: throws error about command compdef not existing
# if [[ -a ~/.zsh-better-npm-completion ]]
# then
  # source ~/.zsh-better-npm-completion/zsh-better-npm-completion.plugin.zsh
# fi

Then change Brewfile to install yarn without node so it doesn't collide with nvm's node:

Brewfile

brew 'yarn' --without-node

Looking for whatever feedback. Don't know if this is the best approach but just wanted to not use Homebrew for nvm.

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

No branches or pull requests

1 participant