npm ERR! code EACCES npm ERR! syscall access npm ERR! path /usr/lib/node_modules npm ERR! errno -13 npm ERR! Error: EACCES: permission denied, access '/usr/lib/node_modules' npm ERR! [Error: EACCES: permission denied, access '/usr/lib/node_modules'] { npm ERR! errno: -13, npm ERR! code: 'EACCES', npm ERR! syscall: 'access', npm ERR! path: '/usr/lib/node_modules' npm ERR! } npm ERR! npm ERR! The operation was rejected by your operating system. npm ERR! It is likely you do not have the permissions to access this file as the current user npm ERR! npm ERR! If you believe this might be a permissions issue, please double-check the npm ERR! permissions of the file and its containing directories, or try running npm ERR! the command again as root/Administrator.
hexo generate console.js:35 throw new TypeError('Console expects a writable stream instance'); ^
TypeError: Console expects a writable stream instance at new Console (console.js:35:11) at Object.<anonymous> (/usr/lib/node_modules/hexo/node_modules/hexo-log/lib/log.js:31:17) at Module._compile (module.js:653:30) at Object.Module._extensions..js (module.js:664:10) at Module.load (module.js:566:32) at tryModuleLoad (module.js:506:12) at Function.Module._load (module.js:498:3) at Module.require (module.js:597:17) at require (internal/module.js:11:18) at Object.<anonymous> (/usr/lib/node_modules/hexo/node_modules/hexo-cli/lib/context.js:3:16) at Module._compile (module.js:653:30) at Object.Module._extensions..js (module.js:664:10) at Module.load (module.js:566:32) at tryModuleLoad (module.js:506:12) at Function.Module._load (module.js:498:3) at Module.require (module.js:597:17)
$ hexo generate INFO Validating config INFO Start processing FATAL { err: Error: [ERROR][hexo-renderer-pandoc] On /home/jiekun.yang/src/blog-2020s/source/_posts/k8s-setup-1cpu2core.md [ERROR][hexo-renderer-pandoc] pandoc exited with code 9: pandoc: Unknown extension: smart at Hexo.pandocRenderer (/home/jiekun.yang/src/blog-2020s/node_modules/hexo-renderer-pandoc/index.js:114:11) at Hexo.tryCatcher (/home/jiekun.yang/src/blog-2020s/node_modules/bluebird/js/release/util.js:16:23) at Hexo.<anonymous> (/home/jiekun.yang/src/blog-2020s/node_modules/bluebird/js/release/method.js:15:34) at /home/jiekun.yang/src/blog-2020s/node_modules/hexo/lib/hexo/render.js:75:22 at tryCatcher (/home/jiekun.yang/src/blog-2020s/node_modules/bluebird/js/release/util.js:16:23) at Promise._settlePromiseFromHandler (/home/jiekun.yang/src/blog-2020s/node_modules/bluebird/js/release/promise.js:547:31) at Promise._settlePromise (/home/jiekun.yang/src/blog-2020s/node_modules/bluebird/js/release/promise.js:604:18) at Promise._settlePromiseCtx (/home/jiekun.yang/src/blog-2020s/node_modules/bluebird/js/release/promise.js:641:10) at _drainQueueStep (/home/jiekun.yang/src/blog-2020s/node_modules/bluebird/js/release/async.js:97:12) at _drainQueue (/home/jiekun.yang/src/blog-2020s/node_modules/bluebird/js/release/async.js:86:9) at Async._drainQueues (/home/jiekun.yang/src/blog-2020s/node_modules/bluebird/js/release/async.js:102:5) at Immediate.Async.drainQueues [as _onImmediate] (/home/jiekun.yang/src/blog-2020s/node_modules/bluebird/js/release/async.js:15:14) at processImmediate (internal/timers.js:461:21) } Something's wrong. Maybe you can find the solution here: %s https://hexo.io/docs/troubleshooting.html