Step 1: Install nvm
To install nvm, run this command:
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/nvm-sh/nvm/master/install.sh)"
This one works on macOS:
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.35.3/install.sh | bash
and this one works on Linux:
wget -qO- https://raw.githubusercontent.com/nvm-sh/nvm/v0.35.3/install.sh | bash
Get the latest LTS version of Node.js using this command (you can list all versions with
nvm ls-remote | grep 'Latest LTS'
At the time of writing this document, the latest LTS version is v12.18.3.
nvm install v12.18.3
Note: You can install the latest version of Node.js instead by running this command:
Now, run this command to install ABT Node with npm:
npm install -g @abtnode/cli
If you are going to create blocklets, you are recommended to install an IDE. A popular IDE you can try is VSCode.