opkapplications.blogg.se

Install latest nodejs debian
Install latest nodejs debian





The web server has been started on port 3000. Now start the node service using the following command.

install latest nodejs debian

Create a file http_server.js vim http_server.jsĪnd add the following content var http = require('http')

install latest nodejs debian

Let’s create a web server with “Hello World!” text. If you want to test your node.js install. Step 4 – Create Demo Web Server (Optional) You can find more details about current version on node.js official website.

  • Don’t Miss => Yarn Installation ( A Node Modules Manager)Īfter completing the installation, check and verify the installed version of Node.js and NPM.
  • This command will also install many other dependent packages on your system. You can choose either to install the latest Node.js version or LTS version.įor Latest Release sudo apt-get install curl software-properties-common curl -sL | sudo bash -įor LTS Release sudo apt-get install curl software-properties-common curl -sL | sudo bash - Step 2 – Install Node.js on DebianĪfter adding the required PPA to your system, install the Nodejs package.

    install latest nodejs debian

    We also need to install the software-properties-common package if not installed already. You are required to add Node.js PPA to your system provided by the Nodejs official website. To install specific nodejs version, Visit our tutorial Install Specific Nodejs Version with NVM. You can install Node.js through the official Debian repositories but the version might be quite old for your projects requirements.







    Install latest nodejs debian