Page Contents

Prerequisite: install Node.js

To get started with LoopBack 4, install Node.js Version 8.x which is the latest/current version.

Adding LoopBack 4 to an existing project

Install TypeScript as development dependency

To use LoopBack 4 in a project, make sure you’re in your project root (use the command cd <my-project-root>), then install TypeScript (version 2 or higher) as a development dependency:

$ npm i --save-dev typescript

Install LoopBack core package

All LoopBack 4 projects require at least LoopBack 4 core. Install it with the following command:

$ npm i --save @loopback/core

Now package.json should include these dependencies (you may see different version numbers):

"dependencies": {
  "@loopback/core": "^4.0.0-alpha.16"
"devDependencies": {
  "typescript": "^2.5.3"