Install Homebrew, and then install Python:
$ cd ~
$ /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)"
$ brew install python
Next use Python to install pip:
$ curl https://bootstrap.pypa.io/get-pip.py
Now install nodeenv with pip. Install nodeenv globally. (For instructions installing it locally, see: https://github.com/ekalinin/nodeenv):
$ sudo -H pip3 install nodeenv
If you are already using Node and npm, confirm that your installation is at least at these minimum versions:
$ node -v
v10.12.0
$ npm -v
6.4.1
If you find that your Mac, does not have Node installed, install it with brew. (If you want to have
a fresh install of Node you can brew unlink node
first.) A fresh or initial install of Node,
will automatically install the latest version of npm.
$ brew install node
$ node -v
$ npm -v
Create a place for your WebApp virtual environment to live on your hard drive. We recommend installing it away from the WebApp source code:
$ mkdir /Users/<YOUR NAME HERE>/NodeEnvironments/
$ cd /Users/<YOUR NAME HERE>/NodeEnvironments/
Now create a new virtual environment in that 'NodeEnvironments' folder. This can take many minutes.
$ nodeenv WeConnectEnv
Now activate this new virtual environment:
$ cd /Users/<YOUR NAME HERE>/NodeEnvironments/WeConnectEnv/
$ . bin/activate
Mac users are now done with this page, go on to the next section: Bringing Code to Your Machine
Create a place to put all of the code from Github:
$ mkdir /Users/<YOUR NAME HERE>/MyProjects/