我有一个博客,我想将本地文件夹转移到另一台计算机上。
首先,我npm init
在新电脑上新建一个文件夹。然后,我传输除“node_modules”和“public”之外的所有文档。
接下来,我跑
npm install
npm install hexo-deployer-git --save
npm install hexo-generator-feed --save
npm install hexo-generator-sitemap --save
在 hexo 之后,终端向我显示以下文本。我该怎么做才能找回我的博客?先感谢您。
INFO Validating config
INFO Start processing
FATAL {
err: Error: ENOENT: no such file or directory, open './sitemap_template.xml'
at Object.openSync (fs.js:498:3)
at readFileSync (fs.js:394:35)
at module.exports (C:\Users\bbcco\myblog\node_modules\hexo-generator-sitemap\lib\template.js:27:34)
at Hexo.module.exports (C:\Users\bbcco\myblog\node_modules\hexo-generator-sitemap\lib\generator.js:36:16)
at Hexo.tryCatcher (C:\Users\bbcco\myblog\node_modules\bluebird\js\release\util.js:16:23)
at Hexo.<anonymous> (C:\Users\bbcco\myblog\node_modules\bluebird\js\release\method.js:15:34)
at C:\Users\bbcco\myblog\node_modules\hexo\lib\hexo\index.js:405:22
at tryCatcher (C:\Users\bbcco\myblog\node_modules\bluebird\js\release\util.js:16:23)
at MappingPromiseArray._promiseFulfilled (C:\Users\bbcco\myblog\node_modules\bluebird\js\release\map.js:68:38)
at MappingPromiseArray.PromiseArray._iterate (C:\Users\bbcco\myblog\node_modules\bluebird\js\release\promise_array.js:115:31)
at MappingPromiseArray.init (C:\Users\bbcco\myblog\node_modules\bluebird\js\release\promise_array.js:79:10)
at MappingPromiseArray._asyncInit (C:\Users\bbcco\myblog\node_modules\bluebird\js\release\map.js:37:10)
at _drainQueueStep (C:\Users\bbcco\myblog\node_modules\bluebird\js\release\async.js:97:12)
at _drainQueue (C:\Users\bbcco\myblog\node_modules\bluebird\js\release\async.js:86:9)
at Async._drainQueues (C:\Users\bbcco\myblog\node_modules\bluebird\js\release\async.js:102:5)
at Immediate.Async.drainQueues [as _onImmediate] (C:\Users\bbcco\myblog\node_modules\bluebird\js\release\async.js:15:14)
at processImmediate (internal/timers.js:464:21) {
errno: -4058,
syscall: 'open',
code: 'ENOENT',
path: './sitemap_template.xml'
}
} Something's wrong. Maybe you can find the solution here: %s https://hexo.io/docs/troubleshooting.html