Install NodeJS 18 LTS on Ubuntu 22.04 LTS
How to install a module globally
To make a certain package available globally, we will use the below command:
This -g will make sure the package is installed in the system directory and thus it’s available globally. The installation of a global module is a little different from the normal one.