Skip to main content

Use nodechup to install multiple Node.js versions.

Project description

python3-cyberfusion-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

PyPI

Run the following command to install the package from PyPI:

pip3 install python3-cyberfusion-nodechup

Debian

Run the following commands to build a Debian package:

mk-build-deps -i -t 'apt -o Debug::pkgProblemResolver=yes --no-install-recommends -y'
dpkg-buildpackage -us -uc

Configure

No configuration is supported.

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 cyberfusion.Nodechup 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.

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

python3_cyberfusion_nodechup-1.3.tar.gz (4.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

python3_cyberfusion_nodechup-1.3-py3-none-any.whl (5.8 kB view details)

Uploaded Python 3

File details

Details for the file python3_cyberfusion_nodechup-1.3.tar.gz.

File metadata

File hashes

Hashes for python3_cyberfusion_nodechup-1.3.tar.gz
Algorithm Hash digest
SHA256 aef7373ef12b277cb35aecf95003a66bc9523762250f7ea47c6d2e7cee85f25b
MD5 a16ff12e360293fcb6f6189cf2effda9
BLAKE2b-256 779c2fe238c145a9221f5f250e2f2f9ca428a77b35ac8ddc3653d4e991c572c7

See more details on using hashes here.

File details

Details for the file python3_cyberfusion_nodechup-1.3-py3-none-any.whl.

File metadata

File hashes

Hashes for python3_cyberfusion_nodechup-1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 b0c2ad3f234a9c9e13303f48ba265d1a70297845e045bb3c690f51819240dc5e
MD5 f0b07e58fa030747311a2ba65656ef8e
BLAKE2b-256 4c63a37ea0ff4aa705c07de7cb21e88d0941bcc88541ddee59f16dc4efe948c6

See more details on using hashes here.

Supported by

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