Node/Usage: Difference between revisions

From ALT Linux Wiki
No edit summary
 
Line 17: Line 17:
There are the two locations for installing ad additional node instances:
There are the two locations for installing ad additional node instances:
* for root user it is a /var/lib/nvm/
* for root user it is a /var/lib/nvm/
* for regular user it is a $HOME/.nvmrc/
* for regular user it is a $HOME/.nvm/


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

Latest revision as of 23:19, 25 March 2025

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

For development

There are the two locations for installing ad additional node instances:

  • for root user it is a /var/lib/nvm/
  • for regular user it is a $HOME/.nvm/

Development package for ruby is called as the ruby-devel, it contains all the prepequisites to build an other ruby with nvm 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