1

运行后npm install hexo-migrator-rss --save。我去我的博客文件,打开 git bash,运行hexo migrate rss,它提示:

undefined migrator plugin is not installed.

Installed migrator plugins:

For more help, you can check the online docs: http://hexo.io/

我该如何解决

4

1 回答 1

1

确保您将hexo-migrate-rss软件包安装在正确的文件夹中。检查包是否列在您的blog/package.json

例如

{
  "name": "blog",
  "version": "3.1.1",
  "private": true,
  "hexo": {
    "version": "3.1.1"
  },
  "dependencies": {
    "hexo": "3.1.1",
    "hexo-deployer-git": "0.0.4",
    "hexo-deployer-heroku": "0.0.3",
    "hexo-generator-archive": "^0.1.0",
    "hexo-generator-category": "^0.1.0",
    "hexo-generator-feed": "^1.0.1",
    "hexo-generator-index": "0.1.2",
    "hexo-generator-tag": "^0.1.0",
    "hexo-migrator-rss": "^0.1.2",
    "hexo-renderer-ejs": "^0.1.0",
    "hexo-renderer-marked": "^0.2.4",
    "hexo-renderer-stylus": "^0.2.0",
    "hexo-server": "^0.1.2",
    "hexo-util": "^0.1.6",
  }
}

hexo-migrator-rss中列出的很重要dependencies,否则会输出没有迁移器。这就是为什么,如果你在hexo-migrate-rss没有--save参数的情况下运行,Hexo 将找不到它。

于 2015-12-06T12:55:47.693 回答