node

Table of Contents

main

如何安装

先决条件

4.x

$ curl -sL https://deb.nodesource.com/setup_4.x | sudo -E bash -

6.x

$ curl -sL https://deb.nodesource.com/setup_6.x | sudo -E bash -

7.x

$ curl -sL https://deb.nodesource.com/setup_7.x | sudo -E bash -

9.x

$ curl -sL https://deb.nodesource.com/setup_9.x | sudo -E bash -

安装

Ubuntu

$ sudo apt-get install nodejs
$ sudo apt-get install build-essential

安装的软件包

检查

$ node -v
v9.5.0
$ npm -v
5.6.0

参考

Date: 2018-02-20

Author: Dongsoo Lee

Created: 2018-12-10 Mon 03:16

Validate