Node.js
Silent install package for Node.js
26.13.1-1
Development
Development
- package: tis-nodejs
- name: Node.js
- version: 26.13.1-1
- categories: Development
- maintainer: WAPT Team,Tranquil IT,Jimmy PELÉ,Pierre Cosson,Stan SALOMON
- editor: OpenJS Foundation
- licence: opensource_free,cpe:/a:mit:x11_license,wapt_public
- locale: all
- target_os: debian(>=11),ubuntu(>=20),redhat_based(>=8)
- impacted_process: node
- architecture: arm64
- signature_date:
- size: 62.61 Mo
- homepage : https://nodejs.org/
package : tis-nodejs
version : 26.13.1-1
architecture : arm64
section : base
priority : optional
name : Node.js
categories : Development
maintainer : WAPT Team,Tranquil IT,Jimmy PELÉ,Pierre Cosson,Stan SALOMON
description : Node.js is an open-source, cross-platform, JavaScript runtime environment that executes JavaScript code outside a web browser.
depends :
conflicts :
maturity : PROD
locale : all
target_os : debian(>=11),ubuntu(>=20),redhat_based(>=8)
min_wapt_version : 2.5
sources : https://nodejs.org/en/download/current/
installed_size :
impacted_process : node
description_fr : Node.js est un environnement d'exécution JavaScript open-source, multiplateforme, qui exécute du code JavaScript en dehors d'un navigateur Web.
description_pl : Node.js to open-source'owe, wieloplatformowe środowisko uruchomieniowe JavaScript, które wykonuje kod JavaScript poza przeglądarką internetową.
description_de : Node.js ist eine quelloffene, plattformübergreifende JavaScript-Laufzeitumgebung, die JavaScript-Code außerhalb eines Webbrowsers ausführt.
description_es : Node.js es un entorno de ejecución de JavaScript de código abierto y multiplataforma que ejecuta código JavaScript fuera de un navegador web.
description_pt : Node.js é um ambiente de código aberto, multi-plataforma, JavaScript runtime que executa o código JavaScript fora de um navegador web.
description_it : Node.js è un ambiente runtime JavaScript open-source e multipiattaforma che esegue codice JavaScript al di fuori di un browser web.
description_nl : Node.js is een open-source, cross-platform, JavaScript runtime omgeving die JavaScript code uitvoert buiten een web browser.
description_ru : Node.js - это кроссплатформенная среда выполнения JavaScript с открытым исходным кодом, которая выполняет код JavaScript вне веб-браузера.
audit_schedule :
editor : OpenJS Foundation
keywords : javascript,js,node,open,code
licence : opensource_free,cpe:/a:mit:x11_license,wapt_public
homepage : https://nodejs.org/
package_uuid : 693749af-48e8-49f6-a4bd-90d9f8cfa8ca
valid_from :
valid_until :
forced_install_on :
changelog : https://github.com/nodejs/node/blob/master/CHANGELOG.md
min_os_version :
max_os_version :
icon_sha256sum : 77ad7394671d64dc6a1045c837364be28fabdc7dfa7299d29b76fe1c4c2d7769
signer : Tranquil IT
signer_fingerprint: 8c5127a75392be9cc9afd0dbae1222a673072c308c14d88ab246e23832e8c6bb
signature_date : 2026-11-18T18:15:37.000000
signed_attributes : package,version,architecture,section,priority,name,categories,maintainer,description,depends,conflicts,maturity,locale,target_os,min_wapt_version,sources,installed_size,impacted_process,description_fr,description_pl,description_de,description_es,description_pt,description_it,description_nl,description_ru,audit_schedule,editor,keywords,licence,homepage,package_uuid,valid_from,valid_until,forced_install_on,changelog,min_os_version,max_os_version,icon_sha256sum,signer,signer_fingerprint,signature_date,signed_attributes
signature : ip6dqJRgwBvrdulDajhfpby+Cah3RcYbq2sd6c2QG9pOiq+a3pwcXJNG1M6bh8TSB4cDjlFf8pbDZVqHm9dwDsaKrlor67wNkfOf3q4rK8nQweDijqHC2qRn9TxjXPf1v+46BVG4HEHw/4ZwgFt1WtoyNqX0u+WgH3FwLDscmJ0u10WB6c3kAmM9lY2XEuARJnVWDokpWqtGBewRAFpx3zJL72m3tmNIZQcTRlokntbOXdCf4rDE3NScZ8hf3v2xR4pSQ0+zixqUBGTJfRXMYDGeFCKAB2qPFpOFz7gjxa0ldvGabz7n8ul4BZgfqRQuo9YlGIQfhzfzE18+nQ/lGg==
from setuphelpers import *
import tarfile
app_path = "/opt/nodejs"
bin_dir = "/usr/local/bin"
def extract_tar(filename, path="."):
with tarfile.open(filename, "r:gz") as tar:
tar.extractall(path)
def install():
archive_file = glob.glob("node-v*-linux-*.tar.gz")[0]
temp_extract_folder = makepath(basedir, "nodejs")
# Delete older version
if isdir(app_path):
remove_tree(app_path)
extract_tar(archive_file, path=temp_extract_folder)
folder_app = glob.glob(f"{temp_extract_folder}/*")[0]
copytree2(folder_app, app_path)
# Creating symlinks for every commands in the bin folder
for command in os.listdir(f"{app_path}/bin"):
link = f"{bin_dir}/{command}"
if isfile(link) or os.path.islink(link):
print(f"Removing existing symlink {link}")
remove_file(link)
print(f"Creating {command} alias in path")
os.symlink(f"{app_path}/bin/{command}", link)
# Delete extracted folder
if isdir(temp_extract_folder):
remove_tree(temp_extract_folder)
def uninstall():
# Removing of symlink
if isdir(f"{app_path}/bin"):
for command in os.listdir(f"{app_path}/bin"):
link = f"{bin_dir}/{command}"
if os.path.islink(link) and os.readlink(link).startswith(app_path):
remove_file(link)
# Removing of the software
if isdir(app_path):
remove_tree(app_path)
def audit():
version = control.get_software_version()
try:
installed = run(f"{bin_dir}/node --version").strip().lstrip("v")
except Exception as e:
print(f"node does not start: {e}")
return "ERROR"
if installed != version:
print(f"Installed version {installed} != package version {version}")
return "ERROR"
return "OK"
from setuphelpers import *
from setupdevhelpers import *
import waptlicences
def update_package():
# Declaring local variables
package_updated = False
proxies = get_proxies()
os_dict = {
"windows-x64": "-x64.msi",
"windows-arm64": "-arm64.msi",
"debian(>=11),ubuntu(>=20),redhat_based(>=8)-x64": "-linux-x64.tar.gz",
"debian(>=11),ubuntu(>=20),redhat_based(>=8)-arm64": "-linux-arm64.tar.gz",
"darwin-all": ".pkg"
}
os_type = control.target_os + "-" + ensure_list(control.architecture)[0]
if not proxies:
proxies = get_proxies_from_wapt_console()
data = wgets(f"https://nodejs.org/download/release/index.json", proxies=proxies, as_json=True)
latest_stable = next(item for item in data if "-" not in item.get("version", ""))
version = latest_stable["version"].replace("v", "")
# https://nodejs.org/download/release/v26.13.0/node-v26.13.0-x64.msi
download_url = f"https://nodejs.org/download/release/v{version}/node-v{version}{os_dict[os_type]}"
latest_bin = download_url.rsplit("/", 1)[-1]
latest_bin_extension = latest_bin.rsplit(".", 1)[-1]
if not isfile(latest_bin):
print(f"Downloading: {latest_bin}")
wget(download_url, latest_bin, proxies=proxies)
else:
print(f"Binary is present: {latest_bin}")
if control.target_os == "windows":
# Check signature bin (only windows)
expected_issuer = "OpenJS Foundation"
sign_name = waptlicences.check_msi_signature(latest_bin)[0]
if sign_name != expected_issuer:
error('Bad issuer %s != %s ' % (sign_name,expected_issuer))
# Deleting outdated binaries
for f in glob.glob(f"*.{latest_bin_extension}"):
if f != latest_bin:
remove_file(f)
# Changing version of the package
if Version(version) > Version(control.get_software_version()):
print(f"Software version updated (from: {control.get_software_version()} to: {Version(version)})")
package_updated = True
else:
print(f"Software version up-to-date ({Version(version)})")
control.set_software_version(version)
control.save_control_to_wapt()
# Validating or not update-package-sources
return package_updated
38d056ab130f7bf7c481c12636a4e9959de36561d3dfcbe54c6e3571bc0c1dc3 : WAPT/certificate.crt
6d726648e1bf50dee8092c1672d233d1bca5fcfdfe77fa2521a659aac64b223d : WAPT/control
77ad7394671d64dc6a1045c837364be28fabdc7dfa7299d29b76fe1c4c2d7769 : WAPT/icon.png
1fe30105e80fb083be63ce1d10dcaadbbde404ea3006c4dee02cce87e9009455 : luti.json
80a330b35415382878df18d41afbd106ea89bfb3be0087d6608e289a14c5cc7d : node-v26.13.1-linux-arm64.tar.gz
3bee23579ce257fce36dcd894b07cdd85121447a89b6e12d41faa7574e58aa59 : setup.py
978153607791a3e9d1ae1311a01c2cbd19e2523f4cf7fa43f18f63060c1aab7a : update_package.py