# Installing Express — Express.js

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

> Set up a Node project and add the express package.

## 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`.
