Installs Node.js, npm, Yarn and pnpm versions for a consistent JavaScript development environment on Alpine Linux.
"features": {
"ghcr.io/ausginer/alpine-features/alpine-node:1": {
"nodeVersion": "18",
"npmVersion": "latest",
"yarnVersion": "latest",
"pnpmVersion": "latest"
}
}| Options Id | Description | Type | Default Value |
|---|---|---|---|
| nodeVersion | The Node.js version to install | string | lts |
| npmVersion | The npm version to install. Set to 'none' to proceed with default installation | string | none |
| yarnVersion | The Yarn version to install. Set to 'none' to skip | string | none |
| pnpmVersion | The pnpm version to install. Set to 'none' to skip | string | none |
lts- Latest LTS versionlatest- Latest stable version18,20,24- Specific major versions18.17.0- Specific exact versions
This feature can install multiple Node.js package managers:
- Installed by default with Node.js
- Can be upgraded to a specific version
- Set
npmVersionto "none" to keep the default version
- Modern package manager with workspace support
- Set
yarnVersionto "latest" or specific version like "1.22.19" - Set to "none" to skip installation
- Fast, disk space efficient package manager
- Set
pnpmVersionto "latest" or specific version like "8.6.0" - Set to "none" to skip installation
"features": {
"ghcr.io/ausginer/alpine-features/alpine-node:1": {}
}"features": {
"ghcr.io/ausginer/alpine-features/alpine-node:1": {
"nodeVersion": "18",
"yarnVersion": "latest"
}
}"features": {
"ghcr.io/ausginer/alpine-features/alpine-node:1": {
"nodeVersion": "latest",
"npmVersion": "latest",
"yarnVersion": "latest",
"pnpmVersion": "latest"
}
}This feature:
- Downloads Node.js from the official Node.js distribution
- Verifies GPG signatures for security
- Installs to
/usr/localfollowing Alpine conventions - Sets up proper PATH configuration
- Installs additional package managers as requested
- Optimized for Alpine Linux musl libc
- Based on the official Node.js Docker Alpine images
- Includes GPG signature verification for security
- Compatible with Alpine Linux 3.14+
- Automatically configures environment variables