Nvm: N/A: version "N/A" is not yet installed. Node 6.9.1 OSX El Capitan

Created on 24 Oct 2016  路  14Comments  路  Source: nvm-sh/nvm

Thanks to everyone who contributes to this project. Issue is not critical as I can manually tell NVM which version to install. As per issue creation request here: https://github.com/creationix/nvm/issues/437#issuecomment-255465512.

Alexs-MBP-3:desktop-fe alex$ nvm use
Found '/Users/alex/proj/desktop-fe/.nvmrc' with version <v6.9.0>
N/A: version "N/A" is not yet installed.

You need to run "nvm install N/A" to install it before using it.

Alexs-MBP-3:desktop-fe alex$ nvm ls
         v4.4.0  
         v6.4.0  
         v6.8.0  
->       v6.9.1  
         system  
default -> v6.8 (-> v6.8.0)
node -> stable (-> v6.9.1) (default)
stable -> 6.9 (-> v6.9.1) (default)
iojs -> N/A (default)
lts/* -> lts/argon (-> N/A)
lts/argon -> v4.6.1 (-> N/A)
lts/boron -> v6.9.1
Alexs-MacBook-Pro-3:desktop-fe alex$ nvm debug
nvm --version: v0.31.4
$SHELL: /bin/bash
$HOME: /Users/alex
$NVM_DIR: '$HOME/.nvm'
$PREFIX: ''
$NPM_CONFIG_PREFIX: ''
nvm current: v6.9.1
which node: $NVM_DIR/versions/node/v6.9.1/bin/node
which iojs: 
which npm: $NVM_DIR/versions/node/v6.9.1/bin/npm
npm config get prefix: $NVM_DIR/versions/node/v6.9.1
npm root -g: $NVM_DIR/versions/node/v6.9.1/lib/node_modules


Mac OS installing node needs followup bassh

All 14 comments

Thanks! Can you provide the output of cat /Users/alex/proj/desktop-fe/.nvmrc?

Sure, it's just v6.9.0

Wow... so I just ran nvm install and nvm use and it worked. I assume I tried that before, but if not... wow. Sorry, maybe this can just be closed. Although the "N/A" message might still be a bug.

Thanks for following up - if it wasn't installed properly, that message was correct - the nvm ls output might have been incorrect, however - but it's too late to debug that now :-)

Same problem here

  1. Had the previous lts version via nvm install --lts && nvm use --lts
  2. Installed the new lts yesterday via nvm install --lts && nvm use --lts

Now:

nvm use --lts
N/A: version "N/A" is not yet installed.

You need to run "nvm install N/A" to install it before using it.

Relevant outputs:

> nvm ls
nvm ls
         v4.6.0
         v6.9.1
default -> lts/* (-> N/A)
node -> stable (-> v6.9.1) (default)
stable -> 6.9 (-> v6.9.1) (default)
iojs -> N/A (default)
lts/* -> lts/argon (-> N/A)
lts/argon -> v4.6.1 (-> N/A)
lts/boron -> v6.9.1

@dmitriid I think you don't have the latest nvm - that was a bug that's fixed in v0.32.1.

Aha! Thank you! This fixed things

@stephaneeybert nvm must be sourced, and nvm install ran, in the same user and profile that you want to run it in. I don't know much about Docker, but my guess is that the user in the image script isn't the same one in docker run.

In a Docker container, by default the user is root. And I'm root indeed in both environments.
Sourcing the nvm doesn't seem to help:
root@60446f9286d0:/# . ~/.nvm/nvm.sh;
root@60446f9286d0:/# . ~/.nvm/nvm.sh; npm -i
bash: npm: command not found
root@60446f9286d0:/# . ~/.nvm/nvm.sh; npm install -g npm
bash: npm: command not found

@stephaneeybert can you file a separate issue? This one is for OS X

Oops. My mistake. I will do.

N/A poppin up on latest version...

~/Dev/frontend (dev) $ nvm ls
         v6.9.2
->       system
node -> stable (-> v6.9.2) (default)
stable -> 6.9 (-> v6.9.2) (default)
iojs -> N/A (default)
lts/* -> lts/boron (-> v6.9.2)
lts/argon -> v4.7.0 (-> N/A)
lts/boron -> v6.9.2

.nvmrc has

lts/argon

@typeoneerror which N/A are you talking about? You don't have any argon or io.js versions installed, according to your nvm ls output. Try nvm install in that directory to ensure it's installed.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

ksmithut picture ksmithut  路  3Comments

swateek picture swateek  路  3Comments

pixelchutes picture pixelchutes  路  3Comments

danielepolencic picture danielepolencic  路  4Comments

raitucarp picture raitucarp  路  3Comments