---
title: "linux下nodejs 安装"
author: "bsr1983"
date: "2016-09-28T19:27:48Z"
tags: []
categories: ["Web前端"]
slug: "linux-nodejs"
draft: false
lastmod: "2016-09-28T19:27:48Z"
id: 2327671
url: "https://bsr1983.iteye.com/blog/2327671"
---

```bash
curl --silent --location https://rpm.nodesource.com/setup_4.x | bash -

```

```bash
yum -y install nodejs
```

```bash
yum install gcc-c++ make
# or: yum groupinstall 'Development Tools'


```

```bash
sudo yum install nodejs npm
```