Arch Linux
Node.js and npm packages are available in the Community Repository.pacman -S nodejs npm
Debian and Ubuntu based Linux distributions
Also including: Linux Mint, Linux Mint Debian Edition (LMDE), elementaryOS and others.Node.js is available from the NodeSource Debian and Ubuntu binary distributions repository (formerly Chris Lea's Launchpad PPA). Support for this repository, along with its scripts, can be found on GitHub at nodesource/distributions.
NOTE: If you are using Ubuntu Precise or Debian Wheezy, you might want to read about running Node.js >= 6.x on older distros.
curl -sL https://deb.nodesource.com/setup_6.x | sudo -E bash -
sudo apt-get install -y nodejs
Alternatively, for Node.js v7:curl -sL https://deb.nodesource.com/setup_7.x | sudo -E bash -
sudo apt-get install -y nodejs
Optional: install build toolsTo compile and install native addons from npm you may also need to install build tools:
sudo apt-get install -y build-essential
Available architectures:- i386 (32-bit)
- amd64 (64-bit)
- armhf (ARM 32-bit hard-float, ARMv7 and up: arm-linux-gnueabihf)
- Ubuntu 12.04 LTS (Precise Pangolin)
- Ubuntu 14.04 LTS (Trusty Tahr)
- Ubuntu 16.04 LTS (Xenial Xerus)
- Debian 7 (wheezy)
- Debian 8 / stable (jessie)
- Debian testing (stretch, aliased to jessie)
- Debian unstable (sid)
nodejs
binary.The nodejs-legacy package installs a
node
symlink that is needed by many modules to build and run correctly.
The Node.js modules available in the distribution official repositories do not need it.Supported Linux Mint versions:
- Linux Mint 13 "Maya" (via Ubuntu 12.04 LTS)
- Linux Mint 17 "Qiana" (via Ubuntu 14.04 LTS)
- Linux Mint 17.1 "Rebecca" (via Ubuntu 14.04 LTS)
- Linux Mint 17.2 "Rafaela" (via Ubuntu 14.04 LTS)
- Linux Mint Debian Edition (LMDE) 2 "Betsy" (via Debian 8)
- elementary OS Luna (via Ubuntu 12.04 LTS)
- elementary OS Freya (via Ubuntu 14.04 LTS)
- Trisquel 6 "Toutatis" (via Ubuntu 12.04 LTS)
- Trisquel 7 "Belenos" (via Ubuntu 14.04 LTS)
- BOSS 5.0 "Anokha" (via Debian 7)
Tidak ada komentar:
Posting Komentar