# Install native-machine-id with npm

Native retrieval of a unique desktop machine ID without admin privileges or child processes. Faster and more reliable alternative to node-machine-id. Version 0.3.11 via npm; verified 2026-05-03.

## Install

```sh
sudo av install npm:native-machine-id
```

Additional install commands:

### Portable and language managers

- npm (100%):

```sh
npm install -g native-machine-id
```

  Evidence: local npm package metadata

## Package facts

- **Package key:** npm:native-machine-id
- **Package manager:** npm
- **Package manager page:** <https://www.npmjs.com/package/native-machine-id>
- **Version:** 0.3.11
- **Source summary:** Native retrieval of a unique desktop machine ID without admin privileges or child processes. Faster and more reliable alternative to node-machine-id.
- **Homepage:** <https://github.com/mongodb-js/devtools-shared>
- **Repository:** <https://github.com/mongodb-js/devtools-shared>
- **Upstream docs:** <https://github.com/mongodb-js/devtools-shared>
- **License:** Apache-2.0
- **Source archive:** <https://registry.npmjs.org/native-machine-id/-/native-machine-id-0.3.11.tgz>
- **Issue tracker:** <https://jira.mongodb.org/projects/COMPASS/issues>
- **Published:** 2026-05-03T16:53:23.332Z
- **Last updated:** 2026-05-03T16:53:23.332Z
- **Generated:** 2026-07-08T07:18:31+00:00

## Executables

- native-machine-id (cli)
- native-machine-id (alias)

## Dependencies

- node-addon-api

## Build dependencies

- @mongodb-js/eslint-config-devtools
- @mongodb-js/mocha-config-devtools
- @mongodb-js/prettier-config-devtools
- @mongodb-js/tsconfig-devtools
- @types/mocha
- @types/node
- @types/sinon-chai
- depcheck
- eslint
- gen-esm-wrapper
- mocha
- node-machine-id
- prettier
- ts-node
- typescript

## Install behavior

- Post-install hook: not defined
- Lifecycle scripts: install
- Bottle: not available

## Freshness

- Page generated: 2026-07-08
- Package-manager version: 0.3.11
- Package-manager updated: 2026-05-03
- Local data: ok
- Upstream repository: https://github.com/mongodb-js/devtools-shared
- info: No cached GitHub release or tag data was available.

## Security Notes

No matching local secret-handling manifest was found for native-machine-id. Nucleus package metadata is still published here so future coverage has a stable package URL.


## Source Database Details

- **Source Database:** npm registry
- **Dist Tags:** Latest: 0.3.11
- **Version Count:** 31
- **Maintainers:** gagik.am, devtoolsbot, nirinchev
- **Author:** Compass Team
- **Publisher:** devtoolsbot
- **Integrity:** sha512-fc0EoHgkjFGTEXjL4RyR7OXcwxLJycK2GLX4QFk0XNaH0DO1h4MZFMTfwDYXUaeFDMC727N3Nv6gE55+jj6HOQ==
- **Shasum:** e14cb36ef0fa1d348f155d6eea533bb42bbed197
- **Unpacked Size:** 27,607
- **File Count:** 0
- **Created At:** 2025-04-16T07:50:19.685Z
- **Latest Published At:** 2026-05-03T16:53:23.332Z
- **Modified At:** 2026-05-03T16:53:23.760Z


## Related links

- [Language runtime packages](https://www.automicvault.com/pkg/language-runtime-packages/) - Matched curated package taxonomy and local package facts.
- [gitnexus](https://www.automicvault.com/pkg/npm/gitnexus/) - Both packages touch the same language runtime or ecosystem. Shared terms: addon, api, node, node-addon-api, or.
- [lzma-native](https://www.automicvault.com/pkg/npm/lzma-native/) - Both packages touch the same language runtime or ecosystem. Shared terms: addon, api, native, node, node-addon-api.
- [node-hid](https://www.automicvault.com/pkg/npm/node-hid/) - Both packages touch the same language runtime or ecosystem. Shared terms: addon, api, device, node, node-addon-api.

## Sources

- Nucleus package database
- package-page enrichment
- package version freshness
- package relationship graph
- cross-ecosystem install command graph
