# Installing Express — Express.js Fundamentals: Routing, Middleware and APIs

Source: https://www.skillbyai.com/en/expressjs/ex-install

> Set up a Node project, install Express and use ES module imports in package.json.

## npm init + install

Every Express project starts as a normal Node package.

```bash
mkdir my-api && cd my-api
npm init -y
npm install express
```

## Enable ESM imports

Add `"type": "module"` to `package.json` to use modern `import express from 'express'` syntax instead of `require`.
