# @npmcli/node-gyp

> Tools for dealing with node-gyp packages

Latest version **6.0.0** (published 2026-05-08) · ISC license · 0 weekly downloads

## Install

```sh
npm install @npmcli/node-gyp
pnpm add @npmcli/node-gyp
yarn add @npmcli/node-gyp
bun add @npmcli/node-gyp
```

## Health

**Score 55/100 (C)** — status: active.

Positive: no vulnerabilities; has provenance; high maintenance score.

Warnings: low downloads; no types; no esm support.

## Facts

| | |
|---|---|
| Version | 6.0.0 |
| Published | 2026-05-08 |
| First published | 2020-09-30 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Node | ^22.22.2 \|\| ^24.15.0 \|\| >=26.0.0 |
| Dependencies | 0 |
| Unpacked size | 2.6 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Provenance | attested (GitHub Actions) |
| GitHub stars | 8 |
| Author | GitHub Inc. |
| Maintainers | saquibkhan, npm-cli-ops, reggi, owlstronaut |
| Keywords | npm, cli, node-gyp |

## Links

- npm: https://www.npmjs.com/package/@npmcli/node-gyp
- Repository: https://github.com/npm/node-gyp
- Homepage: https://github.com/npm/node-gyp#readme
- Issues: https://github.com/npm/node-gyp/issues
- npm.io page: https://npm.io/package/@npmcli/node-gyp

## Alternatives

- [@salesforce/cli](https://npm.io/package/@salesforce/cli.md) — 389.7K weekly downloads
- [@mintlify/cli](https://npm.io/package/@mintlify/cli.md) — 208.9K weekly downloads
- [@grafana/e2e-selectors](https://npm.io/package/@grafana/e2e-selectors.md) — 128.7K weekly downloads
- [mintlify](https://npm.io/package/mintlify.md) — 112.0K weekly downloads
- [@intlayer/cli](https://npm.io/package/@intlayer/cli.md) — 22.8K weekly downloads

## Recent versions

- 6.0.0 (latest) — 2026-05-08
- 5.0.0 — 2025-10-22
- 4.0.0 — 2024-09-24
- 3.0.0 — 2022-10-14
- 2.0.0 — 2022-04-05
- 1.0.3 — 2021-10-04
- 1.0.2 — 2021-02-09
- 1.0.1 — 2020-10-02
- 1.0.0 — 2020-09-30

## README

# @npmcli/node-gyp

This is the module npm uses to decide whether a package should be built
using [`node-gyp`](https://github.com/nodejs/node-gyp) by default.

## API

* `isNodeGypPackage(path)`

Returns a Promise that resolves to `true` or `false` based on whether the
package at `path` has a `binding.gyp` file.

* `defaultGypInstallScript`

A string with the default string that should be used as the `install`
script for node-gyp packages.

---
_Source: https://npm.io/package/@npmcli/node-gyp · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
