--- name: install_volta kind: function lang: bash domain: infra version: "1.0.0" purity: impure signature: "install_volta() -> void" description: "Instala Volta, el gestor de versiones de Node.js, usando el instalador oficial de get.volta.sh. Configura VOLTA_HOME y PATH en ~/.bashrc y ~/.zshrc. Idempotente: si Volta ya está instalado, informa y termina." tags: [bash, install, volta, node, pendiente-usar] uses_functions: [] uses_types: [] returns: [] returns_optional: false error_type: "error_go_core" imports: [] params: - name: "(ninguno)" desc: "no acepta argumentos" output: "progreso a stdout; exit code 1 si curl no está disponible o falla la instalación" tested: false tests: [] test_file_path: "" file_path: "bash/functions/infra/install_volta.sh" source_repo: "https://gitea-dgg044oo04woo4ggcsws4gk0.organic-machine.com/egutierrez/DevLauncher.git" source_license: "MIT" source_file: "scripts/linux/instaladores/instalar_volta.sh" --- ## Ejemplo ```bash source bash/functions/infra/install_volta.sh install_volta # Uso posterior (tras recargar shell) volta install node volta install pnpm volta list ``` ## Notas Volta se instala en `$HOME/.volta`. Requiere `curl`. A diferencia de nvm, Volta gestiona versiones de Node.js a nivel de proyecto via `package.json`. Después de instalar, recargar el shell con `source ~/.bashrc`.