Install required NodeJS Development Tools The above-explained method is a sufficient and easiest way for the NodeJS and npm installation on CentOS 8. Once the NodeJS installation is completed, type the following command to check the installed version: $ node -versionįrom the following screenshot, here, you can see that NodeJS version 10.24.0 has been installed on the CentOS 8 system. Use the following command to install a development profile of NodeJS: $ sudo yum module install nodejs/development The other Nodejs profile is the development profile, which installs some additional packages that are necessary to build the loadable modules dynamically. The above-mentioned command also installs the required NPM modules after, pressing the ‘y’ and then ‘Enter’ key. However, use the following command to install the Nodejs package on CentOS 8 system: $ sudo yum module install nodejs The one marked with is a default profile, it installs a set of common runtime packages. There are four different profiles of the NodeJS package. The following output displays on the terminal that means the NodeJS package is available with multiple streams. Use the following command to list the modules that contain the NodeJS packages: $ sudo yum module list nodejs While we are writing this tutorial, the latest available version of NodeJS is v10.x. The NodeJS modules can be installed directly from the official CentOS 8 repository. Method 1: Install NodeJS using the CentOS 8 repository Install NodeJS using the CentOS 8 repository.The NodeJS along with npm can install on your CentOS 8 system by using the following two methods: In this article, we will discuss two different ways for the installation of NodeJS on CentOS 8 distribution through the command line. When you install NodeJS on your CentOS or any other Linux distribution, the supportive npm packages also automatically install on your system that allows developers to share and reuse the code. Using the NodeJS framework, you can build many useful applications. This environment is designed to execute JavaScript code on the server-side. Node.js is a cross-platform, runtime environment that was built on Chrome’s JavaScript.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |