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

NVM bash #147

Open
oPiZiL opened this issue Nov 29, 2017 · 2 comments
Open

NVM bash #147

oPiZiL opened this issue Nov 29, 2017 · 2 comments

Comments

@oPiZiL
Copy link

oPiZiL commented Nov 29, 2017

export NVM_DIR="/Users/YOURUSERNAME/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && . "$NVM_DIR/nvm.sh"  # This loads nvm

should be

export NVM_DIR="/home/YOURUSERNAME/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && . "$NVM_DIR/nvm.sh"  # This loads nvm
@alsotang
Copy link
Owner

意思到位就行了。我这边 mac 的用户是在 /Users 下面的。

@sevennights
Copy link

sevennights commented Dec 11, 2018

export NVM_DIR="$HOME/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && . "$NVM_DIR/nvm.sh" # This loads nvm
[ -s "$NVM_DIR/bash_completion" ] && . "$NVM_DIR/bash_completion" # This loads nvm bash_completion

source .bash_profile

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

3 participants