To run the app, you need:
- Homebrew
- nodebrew
- Node.js, npm
To install Node.js and npm, you need to install Homebrew:
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
After that, run:
brew -v
The above command should show the version of your Homebrew.
If it is not the case, check the installation of Homebrew has succeeded.
Next, run:
brew install nodebrew
which installs nodebrew.
Make sure that the following command shows the version of nodebrew:
nodebrew --version
If it does not, nodebrew may not have been installed properly.
First, run:
nodebrew install stable
Second, run:
nodebrew show
The above command shows nodebrew use vA.B.C
, where A
, B
and C
are some numbers. If you find it, copy and run it:
nodebrew use vA.B.C
Do not forget to replace
A
,B
andC
with your numbers.
Finally, you need to add $HOME/.nodebrew/current/bin
to the PATH
environment variable.
bash
If your shell is bash, run:
echo 'export PATH=$HOME/.nodebrew/current/bin:$PATH' >> ~/.bash_profile
zsh
If your shell is zsh, run:
echo 'export PATH=$HOME/.nodebrew/current/bin:$PATH' >> ~/.zprofile
Once you have completed the installation, restart the terminal.
If everything has been installed properly,
node -v
should show the version of the installed Node.js (which is vA.B.C
you saw above).
npm
must have been installed with Node.js. You can check that with:
npm -v