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

  • Node.js Web Development
  • David Herron
  • 131字
  • 2021-06-25 21:53:58

Installing on macOS with MacPorts

The MacPorts project (http://www.macports.org/) has for years been packaging a long list of open source software packages for macOS, and they have packaged Node.js. After you have installed MacPorts using the installer on their website, installing Node.js is pretty much this simple:

$ port search nodejs npm
...
nodejs6 @6.12.0 (devel, net)
Evented I/O for V8 JavaScript

nodejs7 @7.10.1 (devel, net)
Evented I/O for V8 JavaScript

nodejs8 @8.9.1 (devel, net)
Evented I/O for V8 JavaScript

nodejs9 @9.2.0 (devel, net)
Evented I/O for V8 JavaScript

Found 6 ports.
--
npm4 @4.6.1 (devel)
node package manager

npm5 @5.5.1 (devel)
node package manager

Found 4 ports.

$ sudo port install nodejs8 npm5 .. long log of downloading and installing prerequisites and Node $ which node /opt/local/bin/node $ node --version v8.9.1
主站蜘蛛池模板: 汝南县| 屏山县| 双峰县| 西城区| 惠水县| 安阳县| 沙洋县| 洮南市| 家居| 岚皋县| 芜湖市| 皮山县| 淄博市| 平顺县| 连平县| 蛟河市| 开阳县| 宿迁市| 永福县| 闸北区| 堆龙德庆县| 菏泽市| 文昌市| 南开区| 江油市| 聂拉木县| 和静县| 高碑店市| 延津县| 松江区| 诏安县| 福安市| 保山市| 屏南县| 张家口市| 准格尔旗| 富裕县| 鸡西市| 平安县| 莒南县| 宝丰县|