官术网_书友最值得收藏!

Linux

Because there are so many different flavors and distributions of Linux available, installing Node isn't quite as straightforward. However, if you're running Linux to begin with, then you are more than aware of this and probably comfortable with a few extra steps.

Joyent has an excellent wiki on how to install Node on Linux using the many different package manager options available. This covers almost all the popular deb and rpm-based package managers. You can read that wiki by visiting https://github.com/joyent/node/wiki/Installing-Node.js-via-package-manager.

For Ubuntu 14.04 and preceding as an example, the steps to install Node would be as follows:

$ sudo apt-get install python-software-properties
$ sudo curl -sL https://deb.nodesource.com/setup_8.x | sudo -E bash -
$ sudo apt-get install nodejs

Once these steps have been completed, both Node and npm should be installed on your system.

主站蜘蛛池模板: 池州市| 盐山县| 德安县| 阳西县| 东城区| 公安县| 肃南| 丹阳市| 布拖县| 佛教| 西丰县| 福建省| 邻水| 南华县| 武清区| 政和县| 山西省| 抚顺市| 淮南市| 阿拉善盟| 康平县| 印江| 肃南| 开平市| 建宁县| 托克逊县| 台湾省| 大姚县| 光泽县| 应用必备| 白银市| 和顺县| 达州市| 奉化市| 陵水| 丰都县| 辽阳县| 乐昌市| 新沂市| 凯里市| 乐平市|