Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

hexo 命令只有help init version 三个command 官网方法未解决 #3923

Open
liuqiqi1 opened this issue Dec 10, 2019 · 1 comment
Open

hexo 命令只有help init version 三个command 官网方法未解决 #3923

liuqiqi1 opened this issue Dec 10, 2019 · 1 comment

Comments

@liuqiqi1
Copy link

@liuqiqi1 liuqiqi1 commented Dec 10, 2019

根据官网把这一段内容放到package.json中后 报错如下

{
--
"hexo": {
"version": "3.2.2"
}
}

FATAL Cannot read property 'code' of undefined
TypeError: Cannot read property 'code' of undefined
at /home/node-v12.13.1-linux-x64/lib/node_modules/hexo-cli/lib/find_pkg.js:21:26
at tryCatcher (/home/node-v12.13.1-linux-x64/lib/node_modules/hexo-cli/node_modules/bluebird/js/release/util.js:16:23)
at Promise._settlePromiseFromHandler (/home/node-v12.13.1-linux-x64/lib/node_modules/hexo-cli/node_modules/bluebird/js/release/promise.js:547:31)
at Promise._settlePromise (/home/node-v12.13.1-linux-x64/lib/node_modules/hexo-cli/node_modules/bluebird/js/release/promise.js:604:18)
at Promise._settlePromise0 (/home/node-v12.13.1-linux-x64/lib/node_modules/hexo-cli/node_modules/bluebird/js/release/promise.js:649:10)
at Promise._settlePromises (/home/node-v12.13.1-linux-x64/lib/node_modules/hexo-cli/node_modules/bluebird/js/release/promise.js:725:18)
at _drainQueueStep (/home/node-v12.13.1-linux-x64/lib/node_modules/hexo-cli/node_modules/bluebird/js/release/async.js:93:12)
at _drainQueue (/home/node-v12.13.1-linux-x64/lib/node_modules/hexo-cli/node_modules/bluebird/js/release/async.js:86:9)
at Async._drainQueues (/home/node-v12.13.1-linux-x64/lib/node_modules/hexo-cli/node_modules/bluebird/js/release/async.js:102:5)
at Immediate.Async.drainQueues [as _onImmediate] (/home/node-v12.13.1-linux-x64/lib/node_modules/hexo-cli/node_modules/bluebird/js/release/async.js:15:14)
at processImmediate (internal/timers.js:439:21)

@curbengh

This comment has been minimized.

Copy link
Contributor

@curbengh curbengh commented Dec 10, 2019

what specific content you're trying to insert to package.json?
which specific page of hexo.io are you referring to?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
3 participants
You can’t perform that action at this time.