nvm_has:command not found

Created on 23 Feb 2017  路  8Comments  路  Source: nvm-sh/nvm

  • Operating system and version:

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)

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

needs followup

Most helpful comment

Did you close open the shell after the nvm install? Trying to run nvm right after installing would do taht too...

All 8 comments

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:

  1. _/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/mast/install)"_
  2. _nvm 鈥攙ersion_. Checking version and getting 0.33.0
  3. nvm install 8 (in my case I wanted to install node 8, but you can install any version needed)

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 about type nvm_has?

Fixed it thanks

Was this page helpful?
0 / 5 - 0 ratings