sábado, 12 de noviembre de 2022

Instalar node.js en Debian Linux - apt install nodejs

 Instalar node.js en Debian Linux - apt install nodejs


https://www.digitalocean.com/community/tutorials/how-to-install-node-js-on-debian-10


  1. sudo apt update

Then install the Node.js package:

  1. sudo apt install nodejs

To verify that the installation was successful, run the node command with the -v flag to get the version:

  1. node -v
Output
v10.24.0

If the package in the repositories suits your needs, this is all you need to do to get set up with Node.js. In most cases, you’ll also want to also install npm, the Node.js package manager. You can do this by installing the npm package with apt:

  1. sudo apt install npm

This will allow you to install modules and packages to use with Node.js.

At this point you have successfully installed Node.js and npm using apt and the default Ubuntu software repositories. The next section will show how to use an alternate repository to install different versions of Node.js.

No hay comentarios:

Publicar un comentario