Install nodejs astra linux

Installing Node.js via package manager

Note: The packages on this page are maintained and supported by their respective packagers, not the Node.js core team. Please report any issues you encounter to the package maintainer. If it turns out your issue is a bug in Node.js itself, the maintainer will report the issue upstream.

Android

Android support is still experimental in Node.js, so precompiled binaries are not yet provided by Node.js developers.

However, there are some third-party solutions. For example, Termux community provides terminal emulator and Linux environment for Android, as well as own package manager and extensive collection of many precompiled applications. This command in Termux app will install the last available Node.js version:

Currently, Termux Node.js binaries are linked against system-icu (depending on libicu package).

Arch Linux

Node.js and npm packages are available in the Community Repository.

CentOS, Fedora and Red Hat Enterprise Linux

Node.js is available as a module called nodejs in CentOS/RHEL 8 and Fedora.

where corresponds to the major version of Node.js. To see a list of available streams:

For example, to install Node.js 12:

For CentOS/RHEL 7 Node.js is available via Software Collections.

Alternatives

These resources provide packages compatible with CentOS, Fedora, and RHEL.

Debian and Ubuntu based Linux distributions

Alternatives

Packages compatible with Debian and Ubuntu based Linux distributions are available via Node.js snaps.

Fast and simple Node.js version manager built in Rust used to manage multiple released Node.js versions. It allows you to perform operations like install, uninstall, switch Node versions automatically based on the current directory, etc. To install fnm, use this install script.

fnm has cross-platform support (macOS, Windows, Linux) & all popular shells (Bash, Zsh, Fish, PowerShell, Windows Command Line Prompt). fnm is built with speed in mind and compatibility support for .node-version and .nvmrc files.

FreeBSD

The most recent release of Node.js is available via the www/node port.

Install a binary package via pkg:

Or compile it on your own using ports:

Gentoo

Node.js is available in the portage tree.

IBM i

LTS versions of Node.js are available from IBM, and are available via the ‘yum’ package manager. The package name is nodejs followed by the major version number (for instance, nodejs12 , nodejs14 etc)

To install Node.js 14.x from the command line, run the following as a user with *ALLOBJ special authority:

Node.js can also be installed with the IBM i Access Client Solutions product. See this support document for more details

macOS

Download the macOS Installer directly from the nodejs.org web site.

If you want to download the package with bash:

Alternatives

Using Homebrew:

Using MacPorts:

Using pkgsrc:

Install the binary package:

Or build manually from pkgsrc:

n is a simple to use Node.js version manager for Mac and Linux. Specify the target version to install using a rich syntax, or select from a menu of previously downloaded versions. The versions are installed system-wide or user-wide, and for more targeted use you can run a version directly from the cached downloads.

See the homepage for install methods (boostrap, npm, Homebrew, third-party), and all the usage details.

If you already have npm then installing n and then the newest LTS node version is as simple as:

NetBSD

Node.js is available in the pkgsrc tree:

Or install a binary package (if available for your platform) using pkgin:

Nodenv

nodenv is a lightweight node version manager, similar to nvm . It’s simple and predictable. A rich plugin ecosystem lets you tailor it to suit your needs. Use nodenv to pick a Node version for your application and guarantee that your development environment matches production.

Nodenv installation instructions are maintained on its Github page. Please visit that page to ensure you’re following the latest version of the installation steps.

Node Version Manager is a bash script used to manage multiple released Node.js versions. It allows you to perform operations like install, uninstall, switch version, etc. To install nvm, use this install script.

Читайте также:  Как поставить значки по центру панели задач windows 10

On Unix / OS X systems Node.js built from source can be installed using nvm by installing into the location that nvm expects:

After this you can use nvm to switch between released versions and versions built from source. For example, if the version of Node.js is v8.0.0-pre:

Once the official release is out you will want to uninstall the version built from source:

Windows

The nvs version manager is cross-platform and can be used on Windows, macOS, and Unix-like systems

To install nvs on Windows go to the release page here and download the MSI installer file of the latest release.

You can also use chocolatey to install it:

macOS,UnixLike

You can find the documentation regarding the installation steps of nvs in macOS/Unix-like systems here

Usage

After this you can use nvs to switch between different versions of node.

To add the latest version of node:

Or to add the latest LTS version of node:

Then run the nvs use command to add a version of node to your PATH for the current shell:

To add it to PATH permanently, use nvs link :

OpenBSD

Node.js is available through the ports system.

Using pkg_add on OpenBSD:

openSUSE and SLE

Node.js is available in the main repositories under the following packages:

  • openSUSE Leap 15.2: nodejs10 , nodejs12 , nodejs14
  • openSUSE Tumbleweed: nodejs16
  • SUSE Linux Enterprise Server (SLES) 12: nodejs10 , nodejs12 , and nodejs14 (The «Web and Scripting Module» must be enabled.)
  • SUSE Linux Enterprise Server (SLES) 15 SP2: nodejs10 , nodejs12 , and nodejs14 (The «Web and Scripting Module» must be enabled.)

For example, to install Node.js 14.x on openSUSE Leap 15.2, run the following as root:

Different major versions of Node can be installed and used concurrently.

SmartOS and illumos

SmartOS images come with pkgsrc pre-installed. On other illumos distributions, first install pkgsrc, then you may install the binary package as normal:

Or build manually from pkgsrc:

Node.js snaps are available as node on the Snap store.

Solus

Solus provides Node.js in its main repository.

Void Linux

Void Linux ships Node.js stable in the main repository.

Windows

Download the Windows Installer directly from the nodejs.org web site.

Alternatives

Using Chocolatey:

Using Scoop:

IBM® SDK for Node.js — z/OS® is available in two installation formats, SMP/E and PAX. Select the installation format that applies to you:

В© OpenJS Foundation. All Rights Reserved. Portions of this site originally В© Joyent.

Источник

Установка node.js на Linux, FreeBSD, Windows

Важное замечание.

В первую очередь хочу обратить внимание на то, что с развитием node.js его синтаксис менялся, порой несколько раз. В связи с этим, категорически не рекомендую использовать старые версии node, проскальзывающий недавно node.NET, и подобные сборки. Идеально — версия 0.1.90 или новее. По той же причине будьте внимательны при нахождениии в сети туториалов по установке. Те, что начинаются с wget http://s3.amazonaws… загрузят устаревшую версию.
Перед установкой убедитесь в том, что python установлен, он нужен для конфигурации и сборки с помощью make (актуально для всего, кроме Windows в некоторых случаях).

GNU/Linux

Лучше было бы собрать как минимум при помощи checkinstall
checkinstall —fstrans=no —install=no —pkgname=node.js —pkgversion «0.1.97» —default

Логика подсказывает, что под MacOS установка будет аналогичной, проверить не могу. Разработчики тестируют своё детище на MacOS, работать должно без проблем.

FreeBSD

На FreeBSD чтобы не собирать libexecinfo из портов достаточно сделать:
pkg_add -r libexecinfo

Итак, классический способ#1
Способ#2
Способ#3
Способ от AterCattus

При сборке под FreeBSD 8.0_RELEASE amd64 с первого раза не собралось:
. obj/release/cpu-profiler.o(.text._ZN2v88internal23ProfilerEventsProcessor19FunctionCreateEventEPhS2_i+0x81): In function `v8::internal::ProfilerEventsProcessor::FunctionCreateEvent(unsigned char*, unsigned char*, int)’:
: undefined reference to `v8::internal::OS::ReleaseStore(long volatile*, long)’
obj/release/cpu-profiler.o(.text._ZN2v88internal23ProfilerEventsProcessor15CodeCreateEventENS0_6Logger16LogEventsAndTagsEiPhj+0xa3): more undefined references to `v8::internal::OS::ReleaseStore(long volatile*, long)’ follow
scons: *** [obj/release/mksnapshot] Error 1
scons: building terminated because of errors.
Waf: Leaving directory `/home/atercattus/node.js/node-v0.1.97/build’
Build failed: -> task failed (err #2):
libv8.a>
*** Error code 1
Помогла эта ссылка: code.google.com/p/v8/issues/detail?id=726.
Там все просто, в v8/src/platform-freebsd.cc добавляется между int OS::ActivationFrameAlignment() и const char* OS::LocalTimezone(double time) реализация недостающей функции:
void OS::ReleaseStore(volatile AtomicWord* ptr, AtomicWord value) <
__asm__ __volatile__(«». «memory»);
*ptr = value;
>
Может кому поможет.

Обновление на момент 11 июня

Вышеприведённый патч не актуален для последней версии из git — само прекрасно компилится под freebsd-amd64

Источник

Install nodejs astra linux

NodeSource Node.js Binary Distributions

This repository contains documentation for using the NodeSource Node.js Binary Distributions via .rpm, .deb and Snap packages as well as their setup and support scripts.

If you are looking for NodeSource’s low-impact Node.js performance monitoring platform, please get started here.

Please file an issue if you are experiencing a problem or would like to discuss something related to the distributions.

Pull requests are encouraged if you have changes you believe would improve the setup process or increase compatibility across Linux distributions.

Table of Contents

  • Debian and Ubuntu based distributions (deb)
    • Installation instructions
    • Manual installation
  • Enterprise Linux based distributions (rpm)
    • Installation instructions
  • Tests
  • FAQ
  • Requested Distributions
  • License

Debian and Ubuntu based distributions

Available architectures:

NodeSource will continue to maintain the following architectures and may add additional ones in the future.

  • amd64 (64-bit)
  • armhf (ARM 32-bit hard-float, ARMv7 and up: arm-linux-gnueabihf)
  • arm64 (ARM 64-bit, ARMv8 and up: aarch64-linux-gnu)

Supported Ubuntu versions:

NodeSource will maintain Ubuntu distributions in active support by Canonical, including LTS and the intermediate releases.

  • Ubuntu 16.04 LTS (Xenial Xerus)
  • Ubuntu 18.04 LTS (Bionic Beaver)
  • Ubuntu 18.10 (Cosmic Cuttlefish)
  • Ubuntu 19.04 (Disco Dingo)
  • Ubuntu 19.10 (Eoan Ermine)
  • Ubuntu 20.04 LTS (Focal Fossa)
  • Ubuntu 20.10 (Groovy Gorilla)
  • Ubuntu 21.04 (Hirsute Hippo)

Supported Debian versions:

NodeSource will maintain support for stable, testing and unstable releases of Debian, due to the long release cycle a considerable number of users are running unstable and testing.

  • Debian 9 / oldoldstable (Stretch)
  • Debian 10 / oldstable (Buster)
  • Debian 11 / stable (Bullseye)
  • Debian unstable (Sid)
  • Debian testing (Bookworm)

Supported Linux Mint versions:

  • Linux Mint 18 «Sarah» (via Ubuntu 16.04 LTS)
  • Linux Mint 18.1 «Serena» (via Ubuntu 16.04 LTS)
  • Linux Mint 18.2 «Sonya» (via Ubuntu 16.04 LTS)
  • Linux Mint 18.3 «Sylvia» (via Ubuntu 16.04 LTS)
  • Linux Mint Debian Edition (LMDE) 2 «Betsy» (via Debian 8)
  • Linux Mint 19 «Tara» (via Ubuntu 18.04 LTS)
  • Linux Mint 19.1 «Tessa» (via Ubuntu 18.04 LTS)
  • Linux Mint 19.2 «Tina» (via Ubuntu 18.04 LTS)
  • Linux Mint 19.3 «Tricia» (via Ubuntu 18.04 LTS)
  • Linux Mint 20 «Ulyana» (via Ubuntu 20.04 LTS)
  • Linux Mint 20.1 «Ulyssa» (via Ubuntu 20.04 LTS)
  • Linux Mint 20.2 «Uma» (via Ubuntu 20.04 LTS)
  • Linux Mint Debian Edition (LMDE) 3 «Cindy» (via Debian 9)
  • Linux Mint Debian Edition (LMDE) 4 «Debbie» (via Debian 10)

Supported Devuan versions:

  • Ascii / stable (via Debian 9)
  • Beowulf / testing (via Debian 10)
  • Ceres / unstable (via Debian unstable)

Supported elementary OS versions:

  • elementary OS 0.4 Loki (via Ubuntu 16.04 LTS)
  • elementary OS 5 Juno (via Ubuntu 18.04 LTS)
  • elementary OS 5.1 Hera (via Ubuntu 18.04 LTS)
  • elementary OS 6 Odin (via Ubuntu 20.04 LTS)

Supported Trisquel versions:

  • Trisquel 8 «Flidas» (via Ubuntu 16.04 LTS)
  • Trisquel 9 «Etiona» (via Ubuntu 18.04 LTS)

Supported BOSS versions:

  • BOSS 7.0 «Drishti» (via Debian 9)
  • BOSS 8.0 «Unnati» (via Debian 10)

Supported BunsenLabs versions:

  • Helium (via Debian 9)
  • Lithium (via Debian 10)

Supported MX Linux versions:

  • MX-17 Horizon (via Debian 9)
  • MX-18 Continuum (via Debian 9)
  • MX-19 Patito Feo (via Debian 10)

Supported Sparky Linux versions:

  • Sparky 4.x «Tyche» (via Debian 9)
  • Sparky 5.x «Nibiru» (via Debian 10)

Supported PureOS Linux versions:

  • PureOS 9.0 «Amber» (via Debian 10)

Supported Astra Linux CE versions:

  • Astra Linux CE 2.12 «Orel» (via Debian 9)

Supported Ubilinux versions:

  • Ubilinux 4.0 «Dolcetto» (via Debian 9)

Node.js v16.x:

Node.js v14.x:

Node.js v12.x:

Node.js LTS (v14.x):

Node.js Current (v16.x):

Optional: install build tools

To compile and install native addons from npm you may also need to install build tools:

If you’re not a fan of curl | bash — , or are using an unsupported distribution, you can try a manual installation.

These instructions assume sudo is present, however some distributions do not include this command by default, particularly those focused on a minimal environment. In this case, you should install sudo or su to root to run the commands directly.

1. Remove the old PPA if it exists

This step is only required if you previously used Chris Lea’s Node.js PPA.

2. Add the NodeSource package signing key

The key ID is 9FD3B784BC1C6FC31A8A0A1C1655A0AB68576280 .

3. Add the desired NodeSource repository

4. Update package lists and install Node.js

Enterprise Linux based distributions

Available architectures:

NodeSource will continue to maintain the following architectures and may add additional ones in the future.

  • x86_64 (64-bit)
  • arm64 (ARM 64-bit, ARMv8 and up: aarch64-linux-gnu)

Supported Red Hat® Enterprise Linux® versions:

  • RHEL 7 (64-bit)
  • RHEL 8 (64-bit)

Supported CentOS versions:

  • CentOS 7 (64-bit)
  • CentOS 8 (64-bit)
  • CentOS 8 Stream (64-bit)

Supported AlmaLinux OS versions:

  • AlmaLinux 8 (64-bit)

Supported Mageia Linux versions:

  • Mageia 7 (64-bit)
  • Mageia 8 (64-bit)

Supported Rocky Linux OS versions:

  • Rocky 8 (64-bit)

Supported CloudLinux versions:

    CloudLinux 6 (32-bit for Node

NOTE: If you are using RHEL 6 or CentOS 6, you might want to read about running Node.js on older distros.

Run on RHEL, CentOS, CloudLinux, Amazon Linux or Fedora:

Node.js v16.x

Node.js v14.x

Node.js v12.x

Node.js LTS (14.x)

Node.js Current (16.x)

Optional: install build tools

To compile and install native addons from npm you may also need to install build tools:

To test an installation is working (and that the setup scripts are working!) use:

Q: How do I use this repo when behind a proxy?

A: Please take a look at issue #9

Q: How do I pin to specific versions of Node.js?

A: Please take a look at issue #33

Q: I upgraded to a new major version of Node.js using the scripts, but the old version is still being installed, what is going on?

A: You probably need to clear out your package manager’s cache. Take a look at issue #191

Q: I’m trying to install Node.js on CentOS 5 / RHEL 5 and it is failing, why?

A: Due to the limitations of the compiler toolchain on EL 5 and its end of general support, we no longer support. See issue #190

Q: I’m seeing «Your distribution, identified as «.i686″ or «.i386, is not currently supported, why?

A: Node.js 4.x and newer require a 64bit os for rpms. See issue #268

Q: Why have certain versions of platforms/releases stopped receiving updates to Node.js?

A: Unfortunately, newer versions of V8 require a modern compiler toolchain. On some platforms, such as ARM wheezy, that toolchain is not available. See issue #247

Q: Why is my Node.js version newer than the one of the script I’ve run?

A: Your package manager is probably installing a newer Node.js version from a different source. See issue #657

Q: What is the current status of IPv6 support?

Q: I cannot install Node.js on Debian Jessie or Ubuntu Trusty Tahr: GPG error, why?

We, unfortunately, do not have the resources necessary to support and test the plethora of Linux releases in the wild, so we rely on community members such as yourself to get support on your favorite distributions! This is a list of releases that have been requested by the community. If you are interested in contributing to this project, this would be a great place to start!

Authors and Contributors

Chris Lea GitHub/chrislea Twitter/@chrislea
Rod Vagg GitHub/rvagg Twitter/@rvagg
William Blankenship GitHub/retrohacker Twitter/@retrohack3r
Harry Truong GitHub/harrytruong
Matteo Brunati GitHub/mattbrun
Brian White GitHub/mscdex
Matt Lewandowsky GitHub/lewellyn
Jan-Hendrik Peters GitHub/hennr
Andris Reinman GitHub/andris9
Carvilsi GitHub/carvilsi
Krasimir Trenchev GitHub/Ava7
Phil Helm GitHub/phelma
0xmohit GitHub/0xmohit
jdarling GitHub/jdarling
Prayag Verma GitHub/pra85
Misha Brukman GitHub/mbrukman
Simon Lydell GitHub/lydell
Sebastian Blei GitHub/iamsebastian
Jorge Maldonado Ventura NotABug/jorgesumle
Mayank Metha GitHub/mayankmetha Twitter/@mayankmethad
Adrian Estrada GitHub/edsadr Twitter/@edsadr
Iván Iguarán GitHub/igsu

Contributions are welcomed from anyone wanting to improve this project!

This material is Copyright (c) NodeSource and licensed under the MIT license. All rights not explicitly granted in the MIT license are reserved. See the included LICENSE.md file for more details.

Supported with love by the NodeSource team

This project is not affiliated with Debian, Ubuntu, Red Hat, CentOS or Fedora.
Ubuntu is a registered trademark of Canonical Ltd.
Debian is a registered trademark owned by Software in the Public Interest, Inc.
Red Hat, CentOS and Fedora are trademarks of Red Hat, Inc.
CloudLinux is a trademark of Cloud Linux, Inc

Источник

Оцените статью