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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file python3_cyberfusion_nodechup-1.2.2.2.1.tar.gz
.
File metadata
- Download URL: python3_cyberfusion_nodechup-1.2.2.2.1.tar.gz
- Upload date:
- Size: 4.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d0b871f13b0f008833e9be43a528384ac908e7cb47cc0b0350fd2d86103f34b8 |
|
MD5 | 61a10b8e5f972b2a622ce370872ce0a4 |
|
BLAKE2b-256 | ad54422d4ab6d1936ccd87d6e826b84728730a246d01cc692f74449d0c86fa55 |
File details
Details for the file python3_cyberfusion_nodechup-1.2.2.2.1-py3-none-any.whl
.
File metadata
- Download URL: python3_cyberfusion_nodechup-1.2.2.2.1-py3-none-any.whl
- Upload date:
- Size: 5.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 855eedd0226579f274d8d478cdf80db83bcd75159aca3446d3057f4a9231c69a |
|
MD5 | 129f279bc0840d6cc7d28a9900e4a55c |
|
BLAKE2b-256 | 3cb04f81f5fc58ac66ea886e79cd54dc418f3ce718b8f0fa8af4050b001b5dc7 |