📣 重要更新 — 访问方式将于 2026 年 10 月 1 日更改

2026 年 10 月 1 日中午(英国时间)起,此镜像源将需要身份验证以保持 apt 正常运行。
订阅年度套餐即可享受不间断访问,同时直接支持本项目的持续运营。感谢您的支持!🙏

🔑 获取年度订阅

💬 有关此仓库的问题、反馈或其他事项?加入我们的 Discord 社区 — 获取帮助并与其他用户交流的最佳场所。
曾通过 Buy Me a Coffee 支持过我们?您太棒了!前往我们的 Discord,我们将为您安排终身免费订阅。💜

🦕 在 Ubuntu 上安装最新的 Deno

安全的 JavaScript/TypeScript 运行时,内置 TypeScript 支持和 Web 标准 API

← 返回首页

什么是 Deno?

Deno is a secure JavaScript and TypeScript runtime built on V8 and Rust, created by Ryan Dahl (the original creator of Node.js). It runs TypeScript natively without a compilation step, has secure-by-default sandboxing, and implements modern web standard APIs. Deno 2 brings full Node.js and npm compatibility.

🚀 Why Latest Versions Matter: Deno is actively developed with major improvements in each release, including enhanced Node.js/npm compatibility, performance improvements, and new web platform API implementations. Latest versions include critical security patches and improved TypeScript support.

🔥 Key Features of Deno

⚡ Blazing Fast

Built on V8 engine with Rust, offering excellent performance for JavaScript and TypeScript workloads.

🔒 Secure by Default

No file, network, or environment access unless explicitly granted. Fine-grained permission system.

📝 TypeScript Native

Run TypeScript files directly without any compilation step or configuration required.

🌐 Web Standard APIs

Implements browser-compatible APIs like fetch, WebSockets, and Streams out of the box.

🔄 Node.js Compatible

Deno 2 supports Node.js APIs and npm packages for seamless migration.

📦 Built-in Toolchain

Includes formatter, linter, test runner, bundler, and documentation generator.

📦 从 deb.griffo.io 安装

步骤 1:添加仓库

sudo install -d -m 0755 /etc/apt/keyrings curl -fsSL https://deb.griffo.io/EA0F721D231FDD3A0A17B9AC7808B4DD62C41256.asc | sudo gpg --dearmor --yes -o /etc/apt/keyrings/deb.griffo.io.gpg echo "deb [signed-by=/etc/apt/keyrings/deb.griffo.io.gpg] https://deb.griffo.io/apt $(lsb_release -sc 2>/dev/null) main" | sudo tee /etc/apt/sources.list.d/deb.griffo.io.list > /dev/null sudo apt update
install -d -m 0755 /etc/apt/keyrings curl -fsSL https://deb.griffo.io/EA0F721D231FDD3A0A17B9AC7808B4DD62C41256.asc | gpg --dearmor --yes -o /etc/apt/keyrings/deb.griffo.io.gpg echo "deb [signed-by=/etc/apt/keyrings/deb.griffo.io.gpg] https://deb.griffo.io/apt $(lsb_release -sc 2>/dev/null) main" | tee /etc/apt/sources.list.d/deb.griffo.io.list > /dev/null apt update

📋 可用的 Deno 软件包

deb.griffo.io provides two different Deno packages to suit different needs:

🦕 deno (Recommended)

Full Deno runtime with all developer tooling including the REPL, LSP, formatter, linter, test runner, and bundler. This is the recommended choice for most developers.

sudo apt install deno
⚡ denort

Lightweight Deno runtime without the developer tooling. Ideal for production deployments where you only need to run compiled Deno programs with minimal overhead and a smaller binary footprint.

sudo apt install denort

🔄 Managing Both Packages

You can install both deno and denort simultaneously:

Install both:

sudo apt install deno denort

Check deno version:

deno --version

Check denort:

denort --version

步骤 2:安装 Deno

sudo apt install deno
apt install deno

步骤 3:验证安装

deno --version deno --help

🚀 Quick Start Examples

Run TypeScript directly:

echo 'console.log("Hello from Deno!")' > app.ts deno run app.ts

Run with permissions:

deno run --allow-net --allow-read app.ts

Create a new project:

deno init my-deno-app cd my-deno-app deno run main.ts

Run with npm packages:

import { express } from "npm:express@4"; deno run --allow-net server.ts

Run tests:

deno test

Format and lint:

deno fmt deno lint

📦 Package Build Repository

Debian 软件包在此 GitHub 仓库中自动构建和维护:

🔗 Related Packages

Enhance your development workflow with these complementary tools from deb.griffo.io:

📚 Additional Resources