运行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/
我该如何解决?
答案 0 :(得分:1)
请确保您在正确的文件夹中安装了awk '{ {for (i=2;i<NF;i++) x=x OFS $i} {print x;x=""} } ' file
个包。检查包裹是否列在hexo-migrate-rss
:
E.g :
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
,Hexo将无法找到它。