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
13
votes
4 answers

When using nvm to manage your node versions, should you point webstorms node interpreter to it?

When you switch to the nvm to manage your node versions, should you point your node interpreter to that one? ie from /usr/bin/node to the ~/.nvm/v.xxx one I ask because I'm running into some issues with webstorm when trying to debug node stuff now.
FutuToad
  • 2,750
  • 5
  • 36
  • 63
12
votes
2 answers

NPM: npm-cli.js not found when running npm -v on Windows 10 with nvm

I use nvm on Windows 10 so I install node 10.19.0: nvm install 10.19.0 nvm use 10.19.0 node -v v10.19.0 npm -v internal/modules/cjs/loader.js:638 throw err; ^ Error: Cannot find module 'C:\Program…
Stéphane GRILLON
  • 11,140
  • 10
  • 85
  • 154
12
votes
4 answers

Why does NVM use the incorrect version of Python?

I'm having some issues with the node-gyp package, and I believe it's because I need to use python 2.7 rather than python 3. I have set-up my PATH environment variables so that when I do python --version the output is Python 2.7.16. However, in the…
JazzyGreen
  • 159
  • 2
  • 3
  • 8
12
votes
1 answer

Use NVM To Install Latest NodeJS For Specific Major Version

I want to install the latest minor/patch version of NodeJS 4 using nvm. I don't just want "latest", because that would be NodeJS 8 or whatever later, potentially breaking-change version is out now. If it were an npm dependency, I would be able to…
meustrus
  • 6,637
  • 5
  • 42
  • 53
12
votes
3 answers

Cannot run npm in a shell script

In a continuous deployment context I have a shell script executed to update and restart my app in the remote server the script is: ssh user@myserver <<'ENDSSH' cd /opt/myapp git pull npm i forever stop src npm run staging ENDSSH the output…
Jordane
  • 624
  • 1
  • 7
  • 23
12
votes
1 answer

What is a sourced shell function?

In the nvm README.markdown it says Please note that which nvm will not work, since nvm is a sourced shell function, not an executable binary. What I found is the nvm install process will update the .bashrc with [ -s "$NVM_DIR/nvm.sh" ] && .…
user3885927
  • 3,363
  • 2
  • 22
  • 42
12
votes
4 answers

How to run older versions of node.js on windows

I want to install v0.8.6 of node along with v0.10. How can I install NVM on windows And use it to install older node
Mark Evans
  • 974
  • 1
  • 11
  • 29
11
votes
4 answers

npm v9.5.1 is known not to run on Node.js v18.16.0

I am using nvm to manage my Node.js versions. Recently, I installed Node.js version 18.16.0 using nvm, but when I try to use npm, I get the following error message: npm v9.5.1 is known not to run on Node.js v18.16.0 I've searched for solutions…
KaaL
  • 123
  • 1
  • 7
11
votes
2 answers

"ERROR: npm v9.5.0 is known not to run on Node.js v18.15.0." on Windows using nvm

I ran into "ERROR: npm v9.5.0 is known not to run on Node.js v18.15.0." on Windows using nvm. nvm -v # Running version 1.1.7.
RaSor
  • 869
  • 10
  • 11
11
votes
3 answers

Not able to install Yarn through corepack

Environment: Windows, Node 16.18.0, Corepack 0.14.1 I am following these instructions to install Yarn. When I run corepack prepare yarn@3.2.4 or corepack prepare yarn@3.2.4 --activate I get the following error: Preparing yarn@3.2.4... Internal…
aryan
  • 130
  • 1
  • 8
11
votes
2 answers

Terminal not recognizing nvm after installed with home brew

I installed nvm via homebrew, but when I run nvm -v or nvm --version form terminal I receive the message command not found: nvm. When I look in finder and cmd+shift+. I can see the ~/.nvm folder. Initially I did not have a .bash_profile in my user…
kdub1312
  • 803
  • 2
  • 9
  • 19
11
votes
3 answers

Use nvm behind the corporate firewall

Since I am behind the corporate firewall, unable to install Node JS via nvm. I decided to use fiddler for proxying and then try to configure proxy in nvm as follows nvm proxy http://127.0.0.1:8888 where 8888 is the proxy port in fiddler However…
jprism
  • 3,239
  • 3
  • 40
  • 56
11
votes
3 answers

NVM Install Error: Profile not found. Tried ~/.bashrc, ~/.bash_profile, ~/.zshrc, and ~/.profile.

I JUST wiped and reformatted my entire Macbook Retina drive to start from scratch, installed homebrew, installed xcode and accepted terms and conditions, went to install nvm with curl -o-…
dillon23
  • 295
  • 1
  • 3
  • 13
11
votes
1 answer

Is it possible to install NVM when I already have installed nodejs 8 on Ubuntu?

I have installed nodejs 8, I can't run karma tests with angular 1.. As specified on Karma official website Note: Karma currently works on Node.js 0.10, 0.12.x, 4.x, 5.x, 6.x, and 7.x. See FAQ for more info., I guess problem might be in my node…
Arkadi
  • 1,153
  • 1
  • 14
  • 35
11
votes
2 answers

How to install nvm in a Dockerfile?

I'm trying to install nvm within a Dockerfile. It seems like it installs OK, but the nvm command is not working. Dockerfile: # Install nvm RUN git clone http://github.com/creationix/nvm.git /root/.nvm; RUN chmod -R 777 /root/.nvm/; RUN sh…
CR47
  • 843
  • 4
  • 12
  • 33