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

1092 questions
110
votes
9 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
  • 1,101
  • 2
  • 8
  • 5
104
votes
13 answers

Why isn't Node Version Manager (NVM) recognized on Windows?

I am trying to downgrade my version of node I ran: npm install nvm and I exported the bin folder to my Windows path variable, C:\Program Files (x86)\nodejs\node_modules\npm\bin but I still get: 'nvm' is not recognized as a an internal or external…
Alexander Mills
  • 90,741
  • 139
  • 482
  • 817
101
votes
4 answers

How to brew install specific version of Node?

For example I want to install either 7.9 or 7.10 but want to avoid Node 8 due to the webpack node-sass breaking bug. When I run brew search node this is what I see: ❯ brew search node leafnode llnode node ✔ node-build …
Leon Gaban
  • 36,509
  • 115
  • 332
  • 529
100
votes
5 answers

GLIBC_2.27 not found while installing Node on Amazon EC2 instance

I'm trying to install Nodejs on Amazon linux machine, I'm following this documentation to install node https://docs.aws.amazon.com/sdk-for-javascript/v2/developer-guide/setting-up-node-on-ec2-instance.html but I'm getting below error when I execute…
Brady Maf
  • 1,279
  • 2
  • 5
  • 12
94
votes
6 answers

Yarn not installing in nvm version node version

I'm running into an issue with yarn when I change my nvm version of node. I noticed when I check my ~/.nvm folder I see two node versions. v8.11.0 v8.11.3. I installed yarn globally. using npm install -g yarn when I was using v8.11.0. I can…
me-me
  • 5,139
  • 13
  • 50
  • 91
91
votes
8 answers

nvm uninstall doesn't actually uninstall the node version

So I'm trying to clear out older versions of node.js. I start with: $ nvm ls v0.10.30 v4.2.3 -> v6.6.0 system I don't want the older versions, so I then do: $ nvm uninstall 4.2.3 Uninstalled node v4.2.3 I then verify that it's…
drmrbrewer
  • 11,491
  • 21
  • 85
  • 181
90
votes
22 answers

nvm use does not switch node versions

on a Windows 10 machine and using nvm4w I tried: from the above image: node --version to check the current version nvm list to list installed versions nvm use 8.8.1 so we switch from 6 to 8 nvm on to enable it node --version to re-check the node…
balexandre
  • 73,608
  • 45
  • 233
  • 342
90
votes
22 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
  • 11,669
  • 26
  • 89
  • 145
86
votes
8 answers

Brew install nvm. nvm: command not found

After installing nvm with brew, and running nvm, it says nvm: command not found How can I get the command to execute?
user3207874
  • 2,815
  • 2
  • 13
  • 18
80
votes
7 answers

What uses / respects the .node-version file?

I've searched Stack Overflow and GitHub (for both node and nvm) for an answer, but to no avail. In some repos (like GitHub's Atom text editor, for instance), I've come across a .node-version file. It seems to be analogous to the .ruby-version…
wisew
  • 2,672
  • 3
  • 23
  • 30
78
votes
7 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,674
  • 5
  • 27
  • 32
75
votes
7 answers

wasm code commit Allocation failed - process out of memory

I have a nodejs script which was working fine on nodejs 12. I got a new macbook air on which I installed nodejs LTS 14. The scripts was not working as intended so I have downgraded it to nodejs 12 LTS. Now I'm getting an error for process out of…
Rahul Bharati
  • 952
  • 1
  • 7
  • 16
72
votes
31 answers

NVM for Windows not working?

I just installed NVM for Windows, but it doesn't seem to be working: Any ideas?
Felix
  • 3,783
  • 5
  • 34
  • 53
67
votes
10 answers

Updating npm when using nvm-windows

I'm using nvm-windows version 1.1.7. I just installed node 11.9.0. nvm installs npm version 6.5.0 together with this node version. However, there's npm version 6.7.0 available already. When I now do npm i -g npm I get: npm ERR! path C:\Program…
Peter T.
  • 2,927
  • 5
  • 33
  • 40
60
votes
14 answers

NPM not found when using NVM

I have installed node/npm using the nvm documentation. curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.29.0/install.sh | bash Then: nvm install node At this point node is working but the npm command result with: npm: command not…
Raphaël
  • 1,924
  • 2
  • 18
  • 22
1
2
3
72 73