文章目录
👉 背景:在 Docker 中安装了 Jenkins,Jenkins 镜像为 Debian 11 bullseye。

👉 目标:在 Jenkins 容器中安装 NodeJS。
NodeSource 简介
NodeSource 官网:https://github.com/nodesource/distributions#debian-and-ubuntu-based-distributions
NodeSource:NodeJS Binary Distributions,即 NodeJS 二进制发行版。
- 支持.rpm 安装:适合基于基于企业级 Linux 的系统
- 支持.deb 安装:适合基于 Debian 和 Ubuntu 的系统
Debian/Ubuntu 安装 NodeJS
下面介绍基于 Debia