Node/Usage

From ALT Linux Wiki
Revision as of 21:55, 25 March 2025 by Majioa (talk | contribs) (Created page with "== Usage == You have to use system node generally for several purposes, so you have to: # use application, which strictly requires node; # use node for development only purposes on your local machine; Usage system node for any other cases along with the specific production case is '''''UNSUPPORTED'''''. === Installation === You have to install '''node''' for use just type in console as root: </tt># apt-get install nvm</tt> === Post install === Our ruby uses '''n...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Usage

You have to use system node generally for several purposes, so you have to:

  1. use application, which strictly requires node;
  2. use node for development only purposes on your local machine;

Usage system node for any other cases along with the specific production case is UNSUPPORTED.

Installation

You have to install node for use just type in console as root:

# apt-get install nvm

Post install

Our ruby uses nvm even for both build process and for usage. To use custom gems in userspace, to install an additional node module or side modules, you have to add a user into nvm group:

# usermod [USER] -aG nvm

or

$ sudo bash -c "usermod \$SUDO_USER  -aG nvm"

And then relogin as the user.

The group nvm is required to use nvm to install new or custom version of node, additionally to system's one.

For development

Development package for ruby is called as the ruby-devel, it contains all the prepequisites to build an other ruby with rvm or without, along with the development headers. Just install it as follows:

# nvm ls-remote

Then install required node as follows:

$ nvm install v16.20.2