Use homebrew to install nodejs and hexo
Install nodejs through homebrew
1 | brew install node |
But you may get an error like below:
1 | myusername@c126h060:~$ brew link node |
That’s because you don’t have the writable permission of the path /usr/local/share/systemtap
, you can use the below command to permit it.
1 | chown -R <yourusername>:<yourgroupname> systemtap |
If you don’t know the yourusername
, you can use the command whoami
to get it. The yourgroupname
is usually staff.
Install hexo to deploy my blog
Clone the blog repository
1 | git clone --recurse-submodules https://github.com/SSBun/blog.git |
The option --recurse-submodules
is used to clone the blog’s theme repository. You can find the file .gitmodules
in the blog directory. It’s used to manage the submodules for the main git repository.
If you forget to add the option
--recursive-submodules
when cloning the repository, you can run the two commands to fix it.
The first:
1 | git submodule init |
The seconds:
1 | git pull --recurse-submodules |