⚠️ 此仓库由一个人在业余时间独立维护,没有任何资金、团队或外部支持

每个软件包和更新均免费构建和发布。如果这些软件包为您节省了时间,欢迎考虑支持该项目。

Buy me a coffee

🦕 在 Debian 上安装最新的 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.

📦 从 debian.griffo.io 安装

步骤 1:添加仓库

curl -sS https://debian.griffo.io/EA0F721D231FDD3A0A17B9AC7808B4DD62C41256.asc | sudo gpg --dearmor --yes -o /etc/apt/trusted.gpg.d/debian.griffo.io.gpg echo "deb https://debian.griffo.io/apt $(lsb_release -sc 2>/dev/null) main" | sudo tee /etc/apt/sources.list.d/debian.griffo.io.list sudo apt update
curl -sS https://debian.griffo.io/EA0F721D231FDD3A0A17B9AC7808B4DD62C41256.asc | gpg --dearmor --yes -o /etc/apt/trusted.gpg.d/debian.griffo.io.gpg echo "deb https://debian.griffo.io/apt $(lsb_release -sc 2>/dev/null) main" | tee /etc/apt/sources.list.d/debian.griffo.io.list apt update

📋 可用的 Deno 软件包

debian.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 debian.griffo.io:

📚 Additional Resources