It’s been a long time since I updated my blog on the old Macbook I had. So I am updating it now and found this problem.
Problem
1 | xiaxii@cecilias-mbp hexo % hexo d |
Solution 1
The reason the version of Node is to high (14+) in my new Macbook. I need to downgrade it to 12 or 13 in order to render Hexo.1
2
3
4
5
6
7
8
9
10
11
12
13
14
15$ brew uninstall node
$ brew search node
==> Formulae
libbitcoin-node node node-sass node@12 ✔ nodebrew nodenv
llnode node-build node@10 node_exporter nodeenv
==> Casks
nodebox nodeclipse
If you meant "node" specifically:
It was migrated from homebrew/cask to homebrew/core.
$ brew install node@12
...
$ brew link node@12
$ echo "\n" >> ~/.zshrc; export PATH="/usr/local/opt/node@12/bin:$PATH"
Solution 2
- Ppgrade hexo by changing the hexo version in package.json
- Run
npm update
in terminal