NVM for Docker & CI/CD
Configures Node Version Manager (nvm) for Docker containers and automated CI/CD pipelines to ensure consistent Node.js environments.
This skill provides specialized guidance for implementing nvm within containerized environments and automated workflows like GitHub Actions. It addresses the common challenge of 'command not found' errors in non-interactive shells by providing patterns for BASH_ENV and ENTRYPOINT configuration. Developers can use this skill to automate Node.js version installation, aliasing, and environment setup across their entire deployment pipeline, ensuring that the exact required Node runtime is always available for builds and deployments.
Key Features
01Non-interactive shell loading via BASH_ENV configuration
02Validation techniques for containerized Node environments
03Automated Node.js version aliasing in containers
04GitHub Actions and CI/CD pipeline integration snippets
05Docker-optimized nvm installation patterns
06356 GitHub stars
Use Cases
01Configuring GitHub Actions runners to use nvm for automated version switching
02Setting up a multi-stage Docker build that requires specific Node.js versions
03Debugging 'nvm command not found' errors in automated deployment scripts