Web Programming/Node.js

From Wikibooks, open books for an open world
Jump to navigation Jump to search

Node.js is a JavaScript framework for building scalable network applications. It provides several modules like:

  • npm: a package manager.
  • An HTTP server.
  • The possibility to manage de filesystems, and to create full JS apps.

Installation[edit | edit source]

Windows[edit | edit source]

Download the .msi on https://nodejs.org/.

Linux[edit | edit source]

On Debian, replace the wanted version in the URL. Example for the 14th:

curl -fsSL https://deb.nodesource.com/setup_14.x | bash -
apt-get install -y nodejs
apt-get install -y npm