---
name: "Node.js"
description: "Tests a Node.js project using Buildkite, assuming Node.js is installed on the agent."
author: "buildkite"
repo: "nodejs-example"
stars: 12
demo: "https://buildkite.com/buildkite/nodejs-example/builds/latest?branch=main"
---

# Buildkite Node.js Example


This repository is an example [Buildkite](https://buildkite.com/) pipeline that runs tests for a [Node.js](https://nodejs.org/) project.



See the full [Getting Started Guide](https://buildkite.com/docs/guides/getting-started) for step-by-step instructions on how to get this running.


<a href="https://buildkite.com/buildkite/nodejs-example/builds/latest?branch=main">
  <img width="1491" alt="Screenshot of Buildkite Node.js example pipeline" src="https://raw.githubusercontent.com/buildkite/nodejs-example/main/.buildkite/screenshot.png" />
</a>

<!-- docs:start -->

## How it works

This example:
- Runs `npm install` and `npm test` using Node.js
- Assumes Node.js is already available on the agent machine

> 💡 If you prefer to use Docker instead of installing Node.js directly, check out the [Node.js Docker Example](https://github.com/buildkite/nodejs-docker-example).

<!-- docs:end -->

## License

See [LICENSE.md](https://github.com/buildkite/nodejs-example/blob/HEAD/LICENSE.md) (MIT)