crazemopa.blogg.se

Debian install nodejs
Debian install nodejs











debian install nodejs

Note that the version number may be different than this example:įirst, you need to update the package index and install the packages to build the source code. You can use curl to download the installation script nvm from the project page on GitHub With this tool you can install several independent versions of Node.js that won't interfere with each other.Ĭontrolling your development environment through nvm allows you to access the latest versions of Node.js while retaining previous versions The nodejs package contains nodejs and npm files, so the npm package manager does not need to be installed separately npm -vįor npm to work correctly (in particular for compiling source code) you need to install the build-essential package: sudo apt install build-essentialĪn alternative to installing Node.js via apt is to use the nvm(Node.js version manager) tool To check the version number of Node.js, type: nodejs -v Now you can install Node.js: sudo apt install nodejs The PPA archive will be added to the system settings, the local package cache will be automatically updated. Run the script as sudo user: sudo bash nodesource_setup.sh If test -n "$ncolors" & test $ncolors -ge 8 then Ncolors=$(which tput > /dev/null & tput colors) # supports colors # please don't submit pull requests against the built scripts. # This script is built from a template in # Run as root or insert `sudo -E` before `bash`: # Script to install the NodeSource Node.js 10.x repo onto a

debian install nodejs

# Discussion, issues and change requests at: Next, use curl to retrieve the installation script for the version you need: curl -sL -o nodesource_setup.shĬheck out the contents with the nano editor: nano nodesource_setup.sh Let's install the PPA to access the contents of the archive. Using a personal package archive(PPA) that is supported by NodeSource, you can choose to install between Node.js v8.x (supported until December 2019), Node.js v10.x (supported until April 2021) and Node.js v12.x. Let's install curl, which will be used to access the PPA: sudo apt install curl Node.js is used primarily on the server, acting as a web server, but there is an opportunity to develop in Node.js and desktop window applications (using NW.js, AppJS or Electron for Linux, Windows and Mac OS)īefore installing Node.js, update your existing Debian package list: Node.js adds the ability for JavaScript to interact with input/output devices via its API (written in C++), to connect other external libraries written in different languages, providing calls to them from JavaScript code. Node.js is a software platform that transforms JavaScript from a highly specialized language into a general-purpose language.













Debian install nodejs