diff --git a/index.html b/index.html index b43dde8..2f6787c 100644 --- a/index.html +++ b/index.html @@ -190,9 +190,9 @@ $(document).ready(function(){ 'archlinuxcn': '/wiki/archlinuxcn.md', 'homebrew': '/wiki/homebrew.md', 'linux.git': '/wiki/linux.md', + 'nodesource': '/wiki/nodesource.md', - } diff --git a/wiki/nodesource.md b/wiki/nodesource.md new file mode 100644 index 0000000..55ac548 --- /dev/null +++ b/wiki/nodesource.md @@ -0,0 +1,17 @@ +Nodesource 镜像使用帮助 +======================= + +Nodesource 为 debian, ubuntu, fedora, RHEL 等发行版提供预编译的 nodejs +和 npm 等软件包。 + +debian/ubuntu 使用方法 +---------------------- + +运行 +``` +curl -sL https://deb.nodesource.com/setup | sudo bash - +``` + +编辑 `/etc/apt/sources.list.d/nodesource.list`,把 +`https://deb.nodesource.com/node/` 替换为 +`http://mirrors.tuna.tsinghua.edu.cn/nodesource/deb/` 即可。