Overview
You will learn
- How to install the Node.js runtime and the npm (Node Package Manager) package manager
- How to install the Cloud MTA Build Tool (
mbt) to package deployable.mtararchives - How to install git to clone and version-control projects
- How to verify each tool from the command line
Prerequisites
Prerequisites
- A machine running Windows, macOS, or Linux, with administrator rights to install software
| Tool | Minimum version | Verify with |
|---|---|---|
| Node.js | 20 LTS or later | node -v |
| npm | bundled with Node.js | npm -v |
Cloud MTA Build Tool (mbt) | latest | mbt -v |
| git | latest | git --version |
Steps
Node.js is a server-side runtime environment built on Chrome’s V8 JavaScript engine. It provides an event-driven, non-blocking (asynchronous) I/O and cross-platform runtime environment. It enables you to build scalable server-side applications using JavaScript and is open-source. Node.js can be used to build applications like command-line applications, web applications, REST API servers, and many else. It is mostly used to create network programs like web servers. For more information, visit the official site at https://nodejs.org.
Before you can start building your Node.js app, you need to install npm and Node.js. npm is included in the Node.js installation.
It is possible to download the libraries and organize the directories on your own and start that way. However, as your project (and list of dependencies) grows, this will quickly become messy. It also makes collaborating and sharing your code much more difficult.
We recommend using a package manager on your OS.
Verify your installation. Open the command line and print the installed versions of node and npm:
node -v
npm -vThis tutorial requires Node.js 20 LTS or later. If
node -vreports an older version, install a current Long-Term Support release before continuing.
This tool will create so-called .mtar archives, which are deployable packages that contain your entire project. The tool itself is an OS-dependent binary, but you can leverage npm to install the right version for your OS and append it to the Path variable. Run the following command to install this tool:
npm install -g mbtVerify your installation. Print the installed version:
mbt -vYou should see output similar to
Cloud MTA Build Tool version 1.2.47.
Another tool that you will use often is git. It will allow you to copy (aka clone) existing code project from compatible pages such as https://github.com.
Use the package manager from step 1 to install this tool as well.
Verify your installation. Print the installed version:
git --versionYou now have the Node.js runtime, npm, the Cloud MTA Build Tool (mbt), and git installed and verified — everything you need to clone a project, build it, and package a deployable .mtar archive locally.
Continue with the SAP BTP mission or learning path that brought you here, or discover more hands-on content in the SAP Tutorial Navigator.
Resources
Discussion
Share feedback on this tutorial or join the conversation in SAP Community.