# Install tsx with npm

TypeScript Execute (tsx): Node.js enhanced with esbuild to run TypeScript & ESM files. Version 4.23.1 via npm; verified 2026-07-13. Also installable with nix: nix profile install nixpkgs#tsx.

## Install

```sh
sudo av install npm:tsx
```

Additional install commands:

### Portable and language managers

- npm (100%):

```sh
npm install -g tsx
```

  Evidence: local npm package metadata

## Package facts

- **Package key:** npm:tsx
- **Package manager:** npm
- **Package manager page:** <https://www.npmjs.com/package/tsx>
- **Version:** 4.23.1
- **Source summary:** TypeScript Execute (tsx): Node.js enhanced with esbuild to run TypeScript & ESM files
- **Homepage:** <https://tsx.hirok.io>
- **Repository:** <https://github.com/privatenumber/tsx>
- **Upstream docs:** <https://tsx.hirok.io>
- **License:** MIT
- **Issue tracker:** <https://github.com/privatenumber/tsx/issues>
- **Published:** 2026-07-13T03:13:33.471Z
- **Last updated:** 2026-07-13T03:13:33.471Z
- **Generated:** 2026-08-04T22:13:35+00:00

## Executables

- tsx (cli)
- tsx (alias)

## Install behavior

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

## Freshness

- Page generated: 2026-08-04
- Package-manager version: 4.23.1
- Package-manager updated: 2026-07-13
- Local data: ok
- Upstream repository: https://github.com/privatenumber/tsx
- info: No cached GitHub release or tag data was available.

## Security Notes

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


## Source Database Details

- **Source Database:** npm registry
- **Dist Tags:** Latest: 4.23.1
- **Version Count:** 132
- **Maintainers:** hirokiosame
- **Author:** Hiroki Osame
- **File Count:** 0
- **Created At:** 2015-08-20T01:25:39.249Z
- **Latest Published At:** 2026-07-13T03:13:33.471Z
- **Modified At:** 2026-07-13T03:13:33.471Z

## Other Package-Manager Records

- Nix - tsx: normalized package name match | nixpkgs package indexes: pkgs/by-name/ts/tsx/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- MacPorts - tsx: normalized package name match | MacPorts ports tree: devel/tsx/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1


## Related links

- [Web development packages](https://pkg.so/web-dev-tools/) - Matched curated package taxonomy and local package facts.
- [sass-embedded](https://pkg.so/npm/sass-embedded/) - Both packages touch the same language runtime or ecosystem. Shared terms: build, build-tools, cli, developer, developer-tools.
- [ts-node-dev](https://pkg.so/npm/ts-node-dev/) - Both packages touch the same language runtime or ecosystem. Shared terms: build, build-tools, cli, developer, developer-tools.
- [tsup](https://pkg.so/npm/tsup/) - Both packages touch the same language runtime or ecosystem. Shared terms: build, build-tools, cli, developer, developer-tools.

## Sources

- pkg.so package database
- package-page enrichment
- package version freshness
- pkgdb category and tag curation
- package relationship graph
- external package-manager database matches
- cross-ecosystem install command graph
