Questions tagged [nvm]

Node Version Manager - Simple bash script to manage multiple active node.js versions

nvm is a version manager for Node.js. It is designed to be installed per-user and invoked per-shell. nvm works on any POSIX-compliant shell (sh, dash, ksh, zsh, bash). It works on Unix-like operating systems, including Linux, macOS, and Windows WSL.

References

774 questions
602
votes
20 answers

nvm keeps "forgetting" node in new terminal session

Upon using a new terminal session in OS X, nvm forgets the node version and defaults to nothing: $ nvm ls: .nvm v0.11.12 v0.11.13 I have to keep hitting nvm use v.0.11.13 in every session: .nvm v0.11.12 -> …
frhd
  • 7,348
  • 5
  • 20
  • 39
504
votes
9 answers

How can the default node version be set using NVM?

I have installed nvm (ubuntu with zsh shell) with two node version: v6.11.5 and v9.0.0 and the default version in nvm is the v9.0.0 Every time I need to change the node version $ nvm list v6.11.5 -> v9.0.0 system default ->…
Pablo Ezequiel Inchausti
  • 6,869
  • 4
  • 23
  • 37
404
votes
26 answers

Node Version Manager install - nvm command not found

I am trying to install NVM as per these instructions I typed in this command in terminal: $ curl https://raw.github.com/creationix/nvm/master/install.sh | sh After running the install, I restart the terminal and attempt to install Node.js with…
jordan
  • 6,382
  • 8
  • 38
  • 72
289
votes
7 answers

How to properly upgrade node using nvm

Is it possible to upgrade node right in place, instead of manually installing the latest stable version? I have installed node.js version 5.0 with nvm, but now I want to update it to 5.4. I'm trying to avoid having to manually reinstall all of my…
Boris Burkov
  • 10,212
  • 11
  • 59
  • 93
250
votes
19 answers

nvm is not compatible with the npm config "prefix" option:

I am trying to run another NodeJS version with nvm but getting this error: $ nvm use v4.2.4 nvm is not compatible with the npm config "prefix" option: currently set to "/Users/z/.npm-global" Run `npm config delete prefix` or `nvm use…
Dmitri Zaitsev
  • 11,773
  • 9
  • 61
  • 103
118
votes
16 answers

How to install nvm in docker?

I am in the process of building a new Docker image and I'm looking to get NVM installed so I can manage nodejs. Reading the docs on how to install NVM they mention that you need to source your .bashrc file in order to start using NVM. I've tried to…
David Ficociello
  • 1,715
  • 3
  • 13
  • 20
114
votes
10 answers

Can't use NVM from root (or sudo)

I've mentioned that my application uses different version of NodeJS when running from sudo. $ node -v v0.10.23 $ sudo node -v v0.11.8-pre This v0.11.8-pre caused me some problems, so I definitely don't want to use it, but I can't change it for…
Vitalii Korsakov
  • 38,491
  • 18
  • 68
  • 85
113
votes
10 answers

Homebrew installs nvm but nvm can't be found afterwards?

I'm using homebrew and oh-my-zsh on a fresh OSX 10.10.1 install. I got nvm via homebrew and then attempted to run it but says - zsh: command not found: nvm Any idea what the problem is? I was able to install and use git just fine... UPDATED…
Dayan
  • 6,748
  • 10
  • 38
  • 72
94
votes
20 answers

Visual Studio Code to use node version specified by NVM

Is it possible for VS Code to use node version specified by NVM? I have 6.9.2 installed locally. Even after switching to another version, from the OS X terminal (not the VS Code terminal), restarting VS Code, VS Code still shows using 6.9.2. OS X…
Aseem Gautam
  • 16,505
  • 9
  • 79
  • 107
94
votes
12 answers

run `nvm use` automatically every time there's a .nvmrc file on the directory

How to configure my shell so that nvm use run automatically every time there's a .nvmrc file on the directory and use the latest version or a global config when there's no .nvmrc file?
Gabo Esquivel
  • 2,126
  • 1
  • 18
  • 18
92
votes
2 answers

Difference between NPM and NVM

I know npm is the package manager and nvm is the node version manager. I am currently trying to auto-install my development and production environment using Bash and forgot how I started out and in what order. After installing npm, I found our nvm…
JohnTheBeloved
  • 1,711
  • 2
  • 15
  • 21
90
votes
6 answers

nvm: N/A: version "N/A -> N/A" is not yet installed

I have nvm setup to use the latest long term support version in ~/.nvm/alias/default, by setting it to lts/*. When I try and have my shell initialize my nvm version (zsh), I get the following error: N/A: version "N/A -> N/A" is not yet…
Brad Parks
  • 54,283
  • 54
  • 221
  • 287
62
votes
7 answers

How to run "nvm" in "oh my zsh"?

In the system there is a nodejs, installed through nvm. The command is not running npm. Console is Oh my zsh
Rtx
  • 621
  • 1
  • 5
  • 5
62
votes
6 answers

NVM & Node.js - Recommended install for all users

is there a recommended install for nvm so all users can use it? i cannot find anything on the web regarding this. this is what i did installed nvm in a common directory put the nvm.sh script locationin .profile for all users created a nvm/alias…
jadent
  • 3,106
  • 5
  • 22
  • 29
59
votes
12 answers

nvm ls-remote command results in "N/A"

I'm trying to install Node with nvm, but when I type any version it's not available. When I type nvm ls-remote I just just get "N/A". I'm able to access the Internet, so I can't figure what could be going on.
eComEvo
  • 9,511
  • 21
  • 69
  • 123
1
2 3
51 52