Nodejs

Матеріал з Wiki Welard
Перейти до навігації Перейти до пошуку

Встановлення NodeJS

[NodeSource] [setup script]

Node.js v18.x

  1. As root
curl -fsSL https://rpm.nodesource.com/setup_18.x | bash -
  1. No root privileges
curl -fsSL https://rpm.nodesource.com/setup_18.x | sudo bash -

Node.js v16.x

  1. As root
curl -fsSL https://rpm.nodesource.com/setup_16.x | bash -
  1. No root privileges
curl -fsSL https://rpm.nodesource.com/setup_16.x | sudo bash -

Node.js v14.x

  1. As root
curl -fsSL https://rpm.nodesource.com/setup_14.x | bash -
  1. No root privileges
curl -fsSL https://rpm.nodesource.com/setup_14.x | sudo bash -

Node.js LTS (16.x)

  1. As root
curl -fsSL https://rpm.nodesource.com/setup_lts.x | bash -
  1. No root privileges
curl -fsSL https://rpm.nodesource.com/setup_lts.x | sudo bash -

Node.js Current (18.x)

  1. As root
curl -fsSL https://rpm.nodesource.com/setup_current.x | bash -
  1. No root privileges
curl -fsSL https://rpm.nodesource.com/setup_current.x | sudo bash -