nodejs
Recipe card from the charly-coder plugin (Images — the deployable catalog).
nodejs – Node.js and npm runtime
Section titled “nodejs – Node.js and npm runtime”Candy Properties
Section titled “Candy Properties”| Property | Value |
|---|---|
| Install files | charly.yml, task: |
Environment Variables
Section titled “Environment Variables”| Variable | Value |
|---|---|
NPM_CONFIG_PREFIX |
~/.npm-global |
npm_config_cache |
~/.cache/npm |
PATH additions: ~/.npm-global/bin
Packages
Section titled “Packages”RPM: nodejs, npm
DEB: nodejs, npm
PAC: nodejs, npm
pnpm (standalone binary)
Section titled “pnpm (standalone binary)”The candy installs the pnpm standalone binary (self-contained — it bundles
its own node) to /usr/local/bin/pnpm via a task: download. It is deliberately
NOT a package.json dependency: a package.json would trigger the npm
multi-stage builder on this candy, and the builder images that COMPOSE nodejs
(arch-builder / fedora-builder) cannot self-provide the npm builder. The
binary on /usr/local/bin is on the default system PATH for every user (incl.
root — Immich runs its pnpm build as root). Immich and other pnpm consumers use
this pnpm to drive their build.
my-image: candy: - nodejsUsed In Boxes
Section titled “Used In Boxes”/charly-distros:fedora-builder/charly-distros:arch-builder- Transitive dependency for
openclaw,pre-commit, and other candies
Related Candies
Section titled “Related Candies”/charly-coder:pre-commit– depends on nodejs/charly-immich:immich-layer– uses the candy’s pnpm to build Immich
When to Use This Skill
Section titled “When to Use This Skill”Use when the user asks about:
- Node.js or npm setup in containers
- Global npm package installation
- The
nodejscandy or npm configuration
Related
Section titled “Related”/charly-image:layer— candy authoring reference (charly.ymlschema, task verbs, service declarations)/charly-check:check— declarative testing (check:block,charly check box,charly check live)