Skip to main content

Program to manage Node.js installations

Project description

NodeCHUP

Use NodeCHUP to install multiple Node.js versions.

Need multiple Node.js versions on your system? Installing multiple Node.js Debian packages is not supported. NodeCHUP allows you to install multiple Node.js versions with a Python API and a CLI.

Install

Install the package from PyPI:

pip3 install nodechup

Configure

NodeCHUP does not require any configuration.

Usage

Concepts

  • Base directory: contains one or more Node.js installations.
  • Node.js installation: represents Node.js version.

Notes about point release

Omit point release

Node.js versions must contain major/minor release. Point release is optional.

If the point release is omitted, the most recent point release for the specified major/minor release is used.

Release symlink

If 'update default version' is true, NodeCHUP creates a symlink in the base directory path from the major/minor release to the installed point release.

For example:

/usr/local/lib/nodejs/14.19 -> /usr/local/lib/nodejs/14.19.1

Notes about base directory

  • The Node.js wiki recommends using the base directory /usr/local/lib/nodejs.
  • The base directory is created if it doesn't exist yet.

Python API

Use the Python API as follows:

import os

from nodechup.nodejs import BaseDirectory, Installation

Installation(base_directory=BaseDirectory(path="/usr/local/lib/nodejs/"), version="14.19.1").download(update_default_version=True)

CLI

Run the nodechup command without any arguments for help.

Tests

Run tests with pytest:

pytest tests/

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

nodechup-1.2.1.1.tar.gz (5.7 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page