---
title: "Introducing your new JavaScript package manager: Deno"
description: "Deno 2 adds `deno add`, `deno remove`/`uninstall`, and `deno install` subcommands that manage npm and JSR dependencies in either `deno.json` import maps or an existing `package.json`, so they work inside Node projects too."
url: "https://swe.quest/articles/introducing-your-new-javascript-package-manager-deno-23f4f8f8933d6ca1"
canonical: "https://deno.com/blog/your-new-js-package-manager"
source: "Deno"
published: "2024-11-08"
difficulty: "medium"
kind: "Announcement"
reading_minutes: 4
tags: ["javascript","build-systems","developer-tools","supply-chain-security"]
---

# Introducing your new JavaScript package manager: Deno

A post on [Deno](https://swe.quest/sources/deno.md), published 2024-11-08, 4 min read, Announcement. Original: [https://deno.com/blog/your-new-js-package-manager](https://deno.com/blog/your-new-js-package-manager)

## Summary

Deno 2 adds \`deno add\`, \`deno remove\`/\`uninstall\`, and \`deno install\` subcommands that manage npm and JSR dependencies in either \`deno.json\` import maps or an existing \`package.json\`, so they work inside Node projects too. Installs use a global cache with hard links (Linux) or clonefile (macOS), like pnpm, to save disk space and speed up installs, and \`--entrypoint\` can pre-cache dependencies for Docker builds. Postinstall scripts are blocked by default and must be allowed per package with \`--allow-scripts\`. \`deno outdated\` and \`deno update\` are planned for the next release.

Written by swe.quest, not by the author.

**Difficulty:** Medium: assumes a working developer; shows how it is built or done

## Topics

- [JavaScript](https://swe.quest/tags/javascript.md) (Languages)
- [Build systems](https://swe.quest/tags/build-systems.md) (Engineering practices)
- [Developer tools](https://swe.quest/tags/developer-tools.md) (Engineering practices)
- [Supply chain security](https://swe.quest/tags/supply-chain-security.md) (Security)

## Prerequisites

- npm and package.json
- JavaScript module imports ([easy posts on JavaScript](https://swe.quest/tags/javascript.md?difficulty=easy))

## Keywords

Deno, Deno 2, npm, JSR, pnpm, package.json

## Related posts

- [Deno 2.6: dx is the new npx](https://swe.quest/articles/deno-2-6-dx-is-the-new-npx-58f73c73a151bd8c.md): Deno · 2025-12-10 · Medium · 16 min read · JavaScript, TypeScript, Runtimes & VMs, Supply chain security, Developer tools
  Deno 2.6 adds \`dx\`, an npx equivalent for running npm and JSR package binaries that defaults to full permissions, prompts before download and runs lifecycle scripts.
- [Deno 1.28: Featuring 1.3 Million New Modules](https://swe.quest/articles/deno-1-28-featuring-1-3-million-new-modules-2730b24ac8878c7c.md): Deno · 2022-11-14 · Medium · 6 min read · JavaScript, Supply chain security, Runtimes & VMs
  Deno 1.28 stabilizes npm compatibility, letting programs import any of npm's 1.3 million packages via \`npm:\` specifiers in imports or import maps, and run npm CLIs with \`deno run npm:\<pkg\>\`, with no package.json, install step or node\_modules folder by default.
- [Why We Added package.json Support to Deno](https://swe.quest/articles/why-we-added-package-json-support-to-deno-0e46f636e0588f6e.md): Deno · 2023-03-20 · Easy · 6 min read · JavaScript, Build systems, Runtimes & VMs
  Deno added package.json support because its HTTP-import module system, though decentralized and manifest-free, suffers from the Duplicate Dependency Problem, the clunky deps.ts pattern, non-composable import maps, and the limits of transpile servers like esm.sh.
- [Deno 1.29: Custom npm registry support](https://swe.quest/articles/deno-1-29-custom-npm-registry-support-bb900a99a83ddca1.md): Deno · 2022-12-14 · Medium · 11 min read · JavaScript, TypeScript, Runtimes & VMs, Developer tools
  Deno 1.29 adds custom npm registry support via the NPM\_CONFIG\_REGISTRY environment variable, lets npm specifiers work with \`deno install\` (with an auto-generated lockfile), and enables npm imports in the REPL. \`deno repl\` now starts with no permissions by default.
- [Deno 2.0 Release Candidate](https://swe.quest/articles/deno-2-0-release-candidate-e1af5ccfd990463c.md): Deno · 2024-09-19 · Medium · 17 min read · JavaScript, TypeScript, Runtimes & VMs, Security
  Deno 2.0's release candidate is the largest update since 1.0: it removes the \`window\` global, adds Node's \`process\` global, and deprecates \`deno cache\` in favor of \`deno install\`.

Browse: [Latest posts](https://swe.quest/index.md) · [Topics](https://swe.quest/tags.md) · [Sources](https://swe.quest/sources.md) · [Topic map](https://swe.quest/map.md) · [Site guide (llms.txt)](https://swe.quest/llms.txt)
