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
58
votes
3 answers

Cannot find module 'agentkeepalive' when updating NPM to 7.20.3

When I'm trying to update npm to 7.20.3 (npm install -g npm@7.20.3), npm throws : npm ERR! code MODULE_NOT_FOUND npm ERR! Cannot find module 'agentkeepalive' npm ERR! Require stack: npm ERR! -…
Thibault Walterspieler
  • 2,272
  • 2
  • 15
  • 25
58
votes
8 answers

Can't uninstall global npm packages after installing nvm

I've found several threads related to this issue but none seem to deal with my case specifically and I've been unable to solve using the suggestions I've found. When I run npm uninstall -g "some package" it just returns: up to date in .043s - And…
Luke_io
  • 681
  • 1
  • 5
  • 6
57
votes
4 answers

Node.js - Configuring $NODE_PATH with NVM

On my way setting up Node.js with NVM, I stumbled upon an error when using Yeoman. I got the error Cannot find module 'yeoman-generator' After some research I found this post on StackOverflow, which is also about my problem. Now I tried to do so,…
Nick Schmidt
  • 1,427
  • 1
  • 13
  • 22
51
votes
5 answers

Uninstalling the currently active version of node.js with nvm

On Ubuntu 16.04, I mistakenly used root to install nvm, and then to install node.js 8.8.1 via nvm. I also used nvm alias default 8.8.1, thinking it would correct my error. Now I would like to: Remove the default alias Uninstall node 8.8.1 Uninstall…
James Newton
  • 6,623
  • 8
  • 49
  • 113
50
votes
10 answers

NVM: Getting Permission denied with nvm install command

I recently fresh-installed Ubuntu 21.04 and wanted to install nvm: curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.38.0/install.sh | bash Then closed and re-opened the terminal. When requesting an install of version 12.16.3 (have tried with…
sauronnikko
  • 4,665
  • 5
  • 31
  • 47
45
votes
2 answers

NVM global module folder

I am using NVM and I am trying to install global NPM modules. That action requires permissions to a folder that I don't have permissions to. With regular node.js/npm that was easy to solve with prefix configuration but NVM explicitly forbids…
Juriy
  • 5,009
  • 8
  • 37
  • 52
44
votes
17 answers

'nvm' is not recognized as an internal or external command Windows

Installed NVM (Node version manager ) for windows from here. Actually NVM was getting installed in Administrator account. Thought to install it in C:\Node\ directory so it would be found in CMDfor user and set environment variable as mentioned here…
Dipak Telangre
  • 1,792
  • 4
  • 19
  • 46
42
votes
6 answers

Can't use nvm from bash script

I am trying to write a shell script to automate my dev environment set-up (install python, nvm, node, mongo etc...). I am using nvm to install Node. It tells you to close and reopen your terminal to start using the nmv command. I tried to source…
user137717
  • 2,005
  • 4
  • 25
  • 48
41
votes
9 answers

nvm install node fails to install on macOS Big Sur M1 Chip

I'm trying to install the latest version of node using nvm. I've just got the newly released SIlicon Macbook Pro with the M1 chip (not sure if that is related). I've installed xcode on the app store and the xcode tools on the command line. The main…
adityaatri
  • 1,967
  • 2
  • 7
  • 10
41
votes
10 answers

Automatically switch to correct version of Node based on project

Let's say I have 2 projects: example1: requires node version 0.12.1 example2: requires node version 0.10 Currently, when I cd into each project, I use nvm use before running the application. Is there a way with node or nvm, to…
cusejuice
  • 10,285
  • 26
  • 90
  • 145
40
votes
1 answer

zsh: bad CPU type in executable: node

I have installed nvm using brew. After that, I installed node version of 16 through nvm and check the current version using node -v to see whether the node is working properly. However, when I install version 14 or any other previous versions and…
Newbie
  • 549
  • 1
  • 4
  • 9
40
votes
4 answers

Set node version differently for specific project(folder) via NVM

I know I can change the node version by nvm use CLI command. However, I want to set specific node version differently for a certain project(folder). It's changed via nvm use command but it's reverted to default version whenever I restart the…
Nihal Razak
  • 403
  • 1
  • 4
  • 6
40
votes
5 answers

Getting the error message "This is not the package you are looking for" when trying to run nvm, why?

Went to use NVM today, and I got this error. This is not the package you are looking for: please go to http://nvm.sh So I went there, and installed the new version. Installation went through, but I still get the same error when I try to run it. I…
David
  • 2,094
  • 3
  • 30
  • 47
39
votes
4 answers

Install multiple version of node.js using NVM (Ubuntu)

How to install multiple version of node.js in Ubuntu using NVM?
Alfred
  • 60,935
  • 33
  • 147
  • 186
36
votes
5 answers

installing node lts with nvm on windows

I've installed nvm on windows (from here), but running nvm install lts prints: lts.0.0 Node.js vlts.0.0 is only available in 32-bit. How do I install node lts on windows?
Joey Baruch
  • 4,180
  • 6
  • 34
  • 48
1 2
3
72 73