Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Where is node while using nvm?

Tags:

node.js

nvm

I am on a MacOS, and I switched from Homebrew Node to NVM, and removed Node from Homebrew but then a lot of my previous packages cannot find Node anymore (Sublime, Heroku etc)...so I have to manually update the location of Node to these packages.

Where is Node while using NVM?

like image 753
Aero Wang Avatar asked Jul 17 '17 08:07

Aero Wang


People also ask

Does NVM come Node?

Before installing NVM, you do not need a Node version installed on your machine, and, if you do have Node installed, it does not matter. Installing NVM and using it to install Node versions will work separately from the existing one.

Where does n install Node?

The n command downloads and installs to /usr/local by default, but you may override this location by defining N_PREFIX . n caches Node. js versions in subdirectory n/versions .

Is NVM and Node same?

NVM is a node. js version manager. It provides easy installation, switching between versions and retains globally installed packages for each version. NPM is a package manager, which help you install libraries, plugins, frameworks and applications.


1 Answers

You can get the path to the executable to where node was installed with

nvm which node

Or any of the other NVM special aliases for node versions such as

nvm which default
like image 158
ŹV - Avatar answered Sep 27 '22 22:09

ŹV -