ESLint: Parsing error: ‘import’ and ‘export’ may appear only with ‘sourceType: module’
1. .eslintrc
中添加:
1 | "parserOptions": { |
2. 重启编辑器
1. .eslintrc
中添加:
1 | "parserOptions": { |
2. 重启编辑器
1 | rules: { |
将主题文件拷贝至站点目录的 themes
目录下, 然后修改下配置文件即可。安装步骤如下。
在终端窗口下,定位到 Hexo
站点目录下。使用 Git clone
代码:
$ cd your-hexo-site
$ git clone https://github.com/iissnan/hexo-theme-next themes/next
打开配置文件 _config.yml
, 找到 theme
字段,并将其值更改为 next
。
theme: next
安装 Hexo 之前,首先要检查电脑中是否已安装下列应用程序:
🍭Node.js
🍭Git
$ npm install -g hexo-cli