npm ERR! Error: shasum check failed for C:\Users\ADMINI~1\AppData\Local\Temp\npm -30024-KDJHJzgP\registry.npmjs.org\hexo-cli\-\hexo-cli-0.1.6.tgz npm ERR! Expected: 7dc3ab939d0889c4bed6a961605ff3e2d67f67a2 npm ERR! Actual: 41de7d67a9b764352eb07c49c32fc38dd7f479b9 npm ERR! From: https://registry.npmjs.org/hexo-cli/-/hexo-cli-0.1.6.tgz npm ERR! at d:\Program Files\nodejs\node_modules\npm\node_modules\sha\index. js:38:8 npm ERR! at ReadStream.<anonymous> (d:\Program Files\nodejs\node_modules\npm \node_modules\sha\index.js:85:7) npm ERR! at ReadStream.emit (events.js:117:20) npm ERR! at _stream_readable.js:943:16 npm ERR! at process._tickCallback (node.js:419:13) npm ERR! If you need help, you may report this *entire* log, npm ERR! including the npm and node versions, at: npm ERR! <http://github.com/npm/npm/issues>
npm ERR! System Windows_NT 6.2.9200 npm ERR! command "d:\\Program Files\\nodejs\\node.exe" "d:\\Program Files\\nodej s\\node_modules\\npm\\bin\\npm-cli.js" "install" "-g" "hexo" npm ERR! cwd C:\Users\Administrator\Desktop npm ERR! node -v v0.10.31 npm ERR! npm -v 1.4.23 npm ERR! registry error parsing json npm ERR! npm ERR! Additional logging details can be found in: npm ERR! C:\Users\Administrator\Desktop\npm-debug.log npm ERR! not ok code 0
莫非是因为被墙了？换国内镜像源试试。 npm config set registry="http://registry.cnpmjs.org"， 然后再次执行npm install -g hexo，成功！
INFO Deploying: git INFO Clearing .deploy folder... INFO Copying files from public folder... warning: LF will be replaced by CRLF in hello-world/index.html. The file will have its original line endings in your working directory. ...... *** Please tell me who you are.
to set your account's default identity. Omit --global to set the identity only in this repository.
fatal: unable to auto-detect email address (got 'Administrator@PC-201505290750.(none)') Username for 'https://github.com': voidking Password for 'https://firstname.lastname@example.org': error: src refspec master does not match any. error: failed to push some refs to 'https://github.com/voidking/voidking.github.io.git' FATAL Something's wrong. Maybe you can find the solution here: http://hexo.io/docs/troubleshooting.html Error: error: src refspec master does not match any. error: failed to push some refs to 'https://github.com/voidking/voidking.github.io.git'
at ChildProcess.<anonymous> (E:\hexo\node_modules\hexo-deployer-git\node_modules\hexo-util\lib\spawn.js:42:17) at ChildProcess.emit (events.js:98:17) at maybeClose (child_process.js:756:16) at Process.ChildProcess._handle.onexit (child_process.js:823:5)
Generating public/private rsa key pair. Enter file in which to save the key (/c/Users/Administrator/.ssh/id_rsa): Created directory '/c/Users/Administrator/.ssh'. Enter passphrase (empty for no passphrase): Enter same passphrase again: Your identification has been saved in/c/Users/Administrator/.ssh/id_rsa. Your public key has been saved in/c/Users/Administrator/.ssh/id_rsa.pub. The key fingerprint is: e6:9e:e7:ae:ad:ee:9f:f0:e5:6b:60:63:85:e8:cd:ae email@example.com
The authenticity of host 'github.com (126.96.36.199)' can't be established. RSA key fingerprint is 16:27:ac:a5:76:28:2d:36:63:1b:56:4d:eb:df:a6:48. Are you sure you want to continue connecting (yes/no)? yes Warning: Permanently added 'github.com,188.8.131.52' (RSA) to the list of known hosts. Hi voidking! You've successfully authenticated, but GitHub does not provide shell access. Connection to github.com closed.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
INFO Deploying: git INFO Clearing .deploy folder... INFO Copying files from public folder... warning: LF will be replaced by CRLF in hello-world/index.html. The file will have its original line endings in your working directory. ...... [master (root-commit) 7124e90] Site updated: 2015-05-3023:04:14 28files changed, 5746 insertions(+) create mode100644 hello-world/index.html ...... warning: LF will be replaced by CRLF in hello-world/index.html. The file will have its original line endings in your working directory. ...... Username for'https://github.com': voidking Password for'https://firstname.lastname@example.org': Branch master setupto track remote branch master from https://github.com/voidking/voidking.github.io.git. To https://github.com/voidking/voidking.github.io.git * [new branch] master -> master INFO Deploy done: git