To work with a more recent version of Node.js, you can add the PPA (personal package archive) maintained by NodeSource. Next, we’ll discuss these elements, along with more flexible and robust methods of installation. Once you have established which version of Node.js you have installed from the Debian repositories, you can decide whether or not you would like to work with different versions, package archives, or version managers. Keep this in mind as you are running software. To check which version of Node.js you have installed after these initial steps, type:īecause of a conflict with another package, the executable from the Debian repositories is called nodejs instead of node. If the package in the repositories suits your needs, then this is all you need to do to get set up with Node.js. Then install the Node.js package from the repositories: To get the distro-stable version of Node.js, you can use the apt package manager. We will discuss how to install from a PPA in the next step. It is recommended, however, that for development and production use cases you install a more recent version with a PPA. If you would like to experiment with the language using a stable and sufficient option, then installing from the repositories may make sense. At the time of writing, this version is 4.8.2, which will reach end-of-life at the end of April 2018. Installing the Distro-Stable Version for Debianĭebian contains a version of Node.js in its default repositories. You can learn how to set this up by following the initial server setup for Debian 9. Before you begin, you should have a non-root user account with sudo privileges set up on your system. This guide assumes that you are using Debian 9. In this guide, we’ll show you how to get started with Node.js on a Debian 9 server. By leveraging JavaScript on both the front and backend, Node.js makes development more consistent and integrated. Node.js is a JavaScript platform for general-purpose programming that allows users to build network applications quickly.
0 Comments
Leave a Reply. |