Node/Usage: Difference between revisions
No edit summary |
|||
Line 13: | Line 13: | ||
</tt># apt-get install nvm</tt> | </tt># apt-get install nvm</tt> | ||
=== | === 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/.nvmrc/ | |||
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: |
Revision as of 23:18, 25 March 2025
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
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/.nvmrc/
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