Node/Usage
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:
# 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