mirror of https://gitlab.com/curben/blog
parent
2053a2c2de
commit
e5fa7d8cc3
|
@ -31,16 +31,23 @@ Create a website/blog (hosted by [GitLab](https://about.gitlab.com/features/page
|
||||||
```bash
|
```bash
|
||||||
$ git clone https://gitlab.com/curben/curben.gitlab.io <folder>
|
$ git clone https://gitlab.com/curben/curben.gitlab.io <folder>
|
||||||
```
|
```
|
||||||
3. Install Node.js.
|
3. Install Node.js 10.
|
||||||
```bash
|
```bash
|
||||||
# Installing npm will also install nodejs as dependency.
|
# Installing npm will also install nodejs as dependency.
|
||||||
# Ubuntu/Debian
|
# Ubuntu 16.04 or newer
|
||||||
$ sudo apt-get install npm
|
$ sudo snap install node --classic --channel=10
|
||||||
# Fedora/Red Hat
|
# Debian
|
||||||
$ sudo yum install npm
|
$ curl -sL https://deb.nodesource.com/setup_10.x | sudo -E bash -
|
||||||
|
$ sudo apt-get install -y nodejs
|
||||||
|
# Fedora 29
|
||||||
|
$ sudo dnf install npm
|
||||||
|
# Fedora 28 or older
|
||||||
|
$ curl --silent --location https://rpm.nodesource.com/setup_10.x | sudo bash -
|
||||||
|
$ sudo yum -y install nodejs
|
||||||
# Arch Linux
|
# Arch Linux
|
||||||
$ sudo pacman -S npm
|
$ sudo pacman -S npm
|
||||||
```
|
```
|
||||||
|
For other distro, see [here](https://nodejs.org/en/download/package-manager/) or [here](https://github.com/nodesource/distributions).
|
||||||
4. Install Hexo and its dependencies (defined in [package.json](package.json)).
|
4. Install Hexo and its dependencies (defined in [package.json](package.json)).
|
||||||
```bash
|
```bash
|
||||||
$ sudo npm install -g hexo-cli
|
$ sudo npm install -g hexo-cli
|
||||||
|
|
Loading…
Reference in New Issue