hexo搭建博客所出现的问题
- 问题:
(node:30412) Warning: Accessing non-existent propert
(node:30412) Warning: Accessing non-existent property 'lineno' of module exports inside circular dependency
bash: syntax error near unexpected token `Warning:'
(node:30412) Warning: Accessing non-existent property 'column' of module exports inside circular dependency
(node:30412) Warning: Accessing non-existent property 'filename' of module exports inside circular dependency
(node:30412) Warning: Accessing non-existent property 'lineno' of module exports inside circular dependency
(node:30412) Warning: Accessing non-existent property 'column' of module exports inside circular dependency
(node:30412) Warning: Accessing non-existent property 'filename' of module exports inside circular dependency
(node:30412) Warning: Accessing non-existent property 'lineno' of module exports inside circular dependency
解决办法:降低nodejs版本
- 卸载:
sudo apt remove nodejs
- 安装Node.js 10.x 的repo:
curl -sL https://deb.nodesource.com/setup_10.x | sudo -E bash -
- 重新安装:
sudo apt-get install -y nodejs
- 问题:
ERROR Deployer not found: git
解决办法:
npm install --save hexo-deployer-git