Check if Node.js is Already Installed
-
Open a terminal and run the following command:
node -v
-
Verify the output.
-
If the command returns an error or a version number less than
v6.10.3
, continue to Install Node.js for your operating system. -
If you already have Node.js
v6.10.3
or later, proceed to Install the API Connect Toolkit.
-
Install Node.js
Select your Operating System:
-
The API Connect developer toolkit requires Node.js version 6.10.3. Use the links below to download the installation file for your operating system.
-
Launch the Windows Installer
.msi
binary and then follow the prompts to install on your machine. -
Before moving on, you will need to update your version of
npm
. Launch aPowershell
and run the following command:npm install npm --global
-
Proceed to Install Docker.
-
Remove any existing versions of node. You will only need to complete these steps if node currently exists.
To remove node completely from your macOS workstation, copy the following command set and run it in your terminal:
sudo rm /usr/local/bin/npm && \ sudo rm /usr/local/share/man/man1/node.1 && \ sudo rm /usr/local/lib/dtrace/node.d && \ sudo rm -rf ~/.npm && \ sudo rm -rf ~/.node-gyp && \ sudo rm /opt/local/bin/node && \ sudo rm /opt/local/include/node && \ sudo rm -rf /opt/local/lib/node_modules && \ sudo rm -rf /usr/local/include/node/
-
Run the following command to install the Xcode Command Line Tools:
xcode-select --install
-
This will open a dialog asking if you you would like to install the command line tools. Click on the
Install
button. -
Agree to the license and the software will begin installing.
-
Run the following command in your terminal to install the Node Version Manager:
curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.33.2/install.sh | bash
-
To install node 6.10.3, issue this command:
nvm install v6.10.3
-
Proceed to Install Docker.
-
Run the following command in a terminal to install the prerequisite packages:
sudo apt-get install build-essential libssl-dev curl git-core
-
Install Node Version Manager by issuing the following command:
curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.33.2/install.sh | bash
Note:
When you installnvm
it will also installnpm
which is the node package manager used to install Node.js based software modules, including the API Connect Developer Toolkit. -
Close and restart your terminal as indicated in the terminal window, or run this command:
source ~/.profile
-
To install node 6.10.3, issue this command:
nvm install v6.10.3
-
Proceed to Install Docker.
-
Follow the instructions for your system on the Node.js website
-
Once you've installed Node.js, proceed to Install Docker.