OSX macOS Sierra 10.12.2
nvm debug output:bash: nvm_has: command not found
nvm --version: v0.33.1
$SHELL: /bin/bash
$HOME: /Users/jacky
$NVM_DIR: '$HOME/.nvm'
$PREFIX: ''
$NPM_CONFIG_PREFIX: ''
$NVM_NODEJS_ORG_MIRROR: 'https://nodejs.org/dist'
$NVM_IOJS_ORG_MIRROR: 'https://iojs.org/dist'
nvm current: none
which node:
which iojs:
which npm:
npm config get prefix: bash: /usr/local/bin/npm: No such file or directory
npm root -g: bash: /usr/local/bin/npm: No such file or directory
bash: nvm_has: command not found
nvm ls output:bash: nvm_has: command not found
bash: nvm_has: command not found
bash: nvm_has: command not found
system
bash: nvm_has: command not found
bash: nvm_has: command not found
bash: nvm_has: command not found
node -> stable (-> N/A) (default)
bash: nvm_has: command not found
bash: nvm_has: command not found
bash: nvm_has: command not found
bash: nvm_has: command not found
bash: nvm_has: command not found
bash: nvm_has: command not found
bash: nvm_has: command not found
bash: nvm_has: command not found
bash: nvm_has: command not found
bash: nvm_has: command not found
bash: nvm_has: command not found
bash: nvm_has: command not found
bash: nvm_has: command not found
bash: nvm_has: command not found
bash: nvm_has: command not found
bash: nvm_has: command not found
bash: nvm_has: command not found
iojs -> N/A (default)
How did you install nvm? (e.g. install script in readme, homebrew):
curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.33.1/install.sh | bash
What steps did you perform?
nvm install node
What happened?
bash: nvm_has: command not found
bash: nvm_has: command not found
nvm needs curl or wget to proceed.
What did you expect to happen?
install success
Is there anything in any of your profile files (.bashrc, .bash_profile, .zshrc, etc) that modifies the PATH?
no
If you run . "$NVM_DIR/nvm.sh" on your console, what happens? What about type nvm_has?
Hi,
I couldn't reproduce the bug following the steps given in this environment:
OS: macOS High Sierra
To install nvm I followed the next steps:
I鈥檓 going to close this; but will happily reopen it if more info is provided and if it鈥檚 still a problem.
Had the same issue. Running npm i in ~/.nvm solved it.
That makes no sense at all, since none of those dependencies are needed for nvm鈥檚 operation.
Not trying to argue, just sharing what solved it for me in hope that it helps anyone facing the same issue.
Did you close open the shell after the nvm install? Trying to run nvm right after installing would do taht too...
If you run
. "$NVM_DIR/nvm.sh"on your console, what happens? What abouttype nvm_has?
Fixed it thanks
Most helpful comment
Did you close open the shell after the nvm install? Trying to run nvm right after installing would do taht too...