
The best way to install Node.js is to use nvm (Node Version Manager). How to uninstall Node. To install a package and save it in your project's package. If the command fails with an error, it means you dont have Node.js installed. If you installed Node using Homebrew, go to Applications > Utilities and open Terminal, then type the following command: brew uninstall -force node That will uninstall Node and all of its components. To install a package: npm install # Install locally Nvm alias default node # set the installed stable version as the default Node Nvm ls-remote # list all the Node versions you can install

Nvm use node # use stable as current version Nvm install node # install most recent Node stable version Then download Node and select your version by running: source ~/.bashrc # source your bashrc/zshrc to add nvm to PATH command -v nvm # check the nvm use message With Jean Dujardin, Anaïs Demoustier, Sandrine Kiberlain, Jérémie Renier. Installation Using Homebrew brew install nodeĭownload and install nvm by running: curl -o- | bash Homebrew simplifies the installation process for many. Node.js is a JavaScript runtime built on Chrome's V8 JavaScript engine. The first step in installing nvm on a Mac is to install Homebrew, a package manager for MacOS.
