Skip to content

Latest commit

 

History

History
111 lines (66 loc) · 1.75 KB

README.md

File metadata and controls

111 lines (66 loc) · 1.75 KB

Installation

To run the app, you need:

  1. Homebrew
  2. nodebrew
  3. Node.js, npm

1. Homebrew

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.

2. nodebrew

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.

3. Node.js, npm

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 and C 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