nvm: nvm: install N/A failed!

I see that other people have had this issue in the past but all those issues seem to be currently resolved. I am not currently able to install new versions of node using nvm. It seems to be failing to recognize the version patterns in the arguments and falls back to “N/A”, for example:

bash-3.2$ nvm install v0.6.19
grep: warning: recursive search of stdin
grep: warning: recursive search of stdin
egrep: warning: recursive search of stdin
grep: warning: recursive search of stdin
Warning: Failed to create the file
Warning: /Users/jrz/.nvm/bin/node-N/A-darwin-x64/node-N/A-darwin-x64.tar.gz:
Warning: No such file or directory
######################################################################## 100.0%
curl: (23) Failed writing body (0 != 162)
Binary download failed, trying source.
Additional options while compiling:
grep: warning: recursive search of stdin
grep: warning: recursive search of stdin
nvm: install N/A failed!
bash-3.2$ nvm ls

       N/A
current:    v0.10.12

I think that grep: warning: recursive search of stdin is an OSX thing, do you think it could be causing the problem?

About this issue

  • Original URL
  • State: closed
  • Created 11 years ago
  • Comments: 21 (6 by maintainers)

Most upvoted comments

I had the same problem but I noticed the installation script added lines to my .bashrc file and it asked to source my .bash_profile file, once I sourced the .bashrc it all worked.

Did you also source your .bash_profile after the curl?

curl -k https://raw.github.com/creationix/nvm/master/install.sh | sh
source ~/.bash_profile
nvm use v0.10.17

I was getting the same error, until I realized this.