创建个人博客

创建仓库repositoru名前面和用户名一致
用户名.github.io
勾选初始化文件
安装git和node
CMD node -v
node. js中建两个文件夹,
node_cache node_global

Microsoft Windows [版本 10.0.18362.836]
(c) 2019 Microsoft Corporation。保留所有权利。

C:\Users\Lenovo>node -v
v12.13.0

C:\Users\Lenovo>npm config set cache "D:\PersonalBlog\node.js\node_cache"

C:\Users\Lenovo>npm config set prefix  "D:\PersonalBlog\node.js\node_global"

C:\Users\Lenovo>

Lenovo@LAPTOP-A9D7IPVF MINGW64 ~/Desktop
$ ssh-keygen -t rsa -C "[email protected]"
Generating public/private rsa key pair.
Enter file in which to save the key (/c/Users/Lenovo/.ssh/id_rsa):
/c/Users/Lenovo/.ssh/id_rsa already exists.
Overwrite (y/n)? y
Enter passphrase (empty for no passphrase):
Enter same passphrase again:
Your identification has been saved in /c/Users/Lenovo/.ssh/id_rsa.
Your public key has been saved in /c/Users/Lenovo/.ssh/id_rsa.pub.
The key fingerprint is:
SHA256:9GA9oOV/NfYpo3pZeWYBM1pOArewbwcnAkTAAc1Asv0 [email protected]
The key's randomart image is:
+---[RSA 3072]----+
| ..+*o=+oo..     |
|  +  + +.o+..*   |
| . .  . =oo+*.B  |
|    .  o +oo++ +.|
|     E  S oo.+..o|
|          ..ooo+ |
|           .o +  |
|          .o     |
|         ..      |
+----[SHA256]-----+

Lenovo@LAPTOP-A9D7IPVF MINGW64 ~/Desktop
$
Microsoft Windows [版本 10.0.18362.836]
(c) 2019 Microsoft Corporation。保留所有权利。

C:\Users\Lenovo>D:

D:\>cd PersonalBlog\blog

D:\PersonalBlog\blog>npm install hexo-cli -g
D:\PersonalBlog\node.js\node_global\hexo -> D:\PersonalBlog\node.js\node_global\node_modules\hexo-cli\bin\hexo
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@~2.1.2 (node_modules\hexo-cli\node_modules\chokidar\node_modules\fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for [email protected]: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})

+ [email protected]
added 81 packages from 322 contributors in 43.574s

D:\PersonalBlog\blog>
D:\PersonalBlog\blog>hexo init wlrBlog
INFO  Cloning hexo-starter https://github.com/hexojs/hexo-starter.git
Cloning into 'D:\PersonalBlog\blog\wlrBlog'...
remote: Enumerating objects: 165, done.

Receiving objects: 100% (165/165), 31.30 KiB | 410.00 KiB/s, done.
Resolving deltas: 100% (79/79), done.
Submodule 'themes/landscape' (https://github.com/hexojs/hexo-theme-landscape.git) registered for path 'themes/landscape'
Cloning into 'D:/PersonalBlog/blog/wlrBlog/themes/landscape'...
remote: Enumerating objects: 8, done.
remote: Counting objects: 100% (8/8), done.
remote: Compressing objects: 100% (6/6), done.
remote: Total 1071 (delta 1), reused 6 (delta 1), pack-reused 1063
Receiving objects: 100% (1071/1071), 3.22 MiB | 7.00 KiB/s, done.
Resolving deltas: 100% (586/586), done.
Submodule path 'themes/landscape': checked out '73a23c51f8487cfcd7c6deec96ccc7543960d350'
[32mINFO [39m Install dependencies
npm WARN deprecated [email protected]: Please see https://github.com/lydell/urix#deprecated
npm WARN deprecated [email protected]: https://github.com/lydell/resolve-url#deprecated

> [email protected] postinstall D:\PersonalBlog\blog\wlrBlog\node_modules\ejs
> node ./postinstall.js

Thank you for installing EJS: built with the Jake JavaScript build tool (https://jakejs.com/)

npm notice created a lockfile as package-lock.json. You should commit this file.
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@~2.1.2 (node_modules\chokidar\node_modules\fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for [email protected]: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})

added 253 packages from 450 contributors and audited 254 packages in 26.101s
found 1 low severity vulnerability
  run `npm audit fix` to fix them, or `npm audit` for details
INFO  Start blogging with Hexo!

D:\PersonalBlog\blog>cd wlrBlog

D:\PersonalBlog\blog\wlrBlog>npm install
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules\fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for [email protected]: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})

audited 254 packages in 3.254s
found 1 low severity vulnerability
  run `npm audit fix` to fix them, or `npm audit` for details

D:\PersonalBlog\blog\wlrBlog>hexo server
INFO  Start processing
INFO  Hexo is running at http://localhost:4000 . Press Ctrl+C to stop.
INFO  Have a nice day
终止批处理操作吗(Y/N)?
终止批处理操作吗(Y/N)? y

D:\PersonalBlog\blog\wlrBlog>hexo g
INFO  Start processing
INFO  Files loaded in 101 ms
INFO  Generated: index.html
INFO  Generated: archives/index.html
INFO  Generated: fancybox/fancybox_loading.gif
INFO  Generated: fancybox/jquery.fancybox.css
INFO  Generated: fancybox/jquery.fancybox.js
INFO  Generated: fancybox/jquery.fancybox.pack.js
INFO  Generated: fancybox/[email protected]
INFO  Generated: archives/2020/index.html
INFO  Generated: fancybox/fancybox_overlay.png
INFO  Generated: fancybox/blank.gif
INFO  Generated: archives/2020/06/index.html
INFO  Generated: fancybox/[email protected]
INFO  Generated: fancybox/fancybox_sprite.png
INFO  Generated: fancybox/helpers/jquery.fancybox-buttons.css
INFO  Generated: css/fonts/fontawesome-webfont.eot
INFO  Generated: fancybox/helpers/fancybox_buttons.png
INFO  Generated: fancybox/helpers/jquery.fancybox-buttons.js
INFO  Generated: css/fonts/FontAwesome.otf
INFO  Generated: js/script.js
INFO  Generated: fancybox/helpers/jquery.fancybox-media.js
INFO  Generated: fancybox/helpers/jquery.fancybox-thumbs.css
INFO  Generated: css/style.css
INFO  Generated: css/fonts/fontawesome-webfont.woff
INFO  Generated: css/fonts/fontawesome-webfont.ttf
INFO  Generated: fancybox/helpers/jquery.fancybox-thumbs.js
INFO  Generated: 2020/06/13/hello-world/index.html
INFO  Generated: css/fonts/fontawesome-webfont.svg
INFO  Generated: css/images/banner.jpg
INFO  28 files generated in 692 ms

D:\PersonalBlog\blog\wlrBlog>hexo d
ERROR Deployer not found: git

D:\PersonalBlog\blog\wlrBlog>npm install hexo-deployer-git --save
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules\fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for [email protected]: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})

+ [email protected]
added 1 package from 1 contributor and audited 255 packages in 3.701s
found 2 low severity vulnerabilities
  run `npm audit fix` to fix them, or `npm audit` for details

D:\PersonalBlog\blog\wlrBlog>hexo g
INFO  Start processing
INFO  Files loaded in 103 ms
INFO  0 files generated in 26 ms

D:\PersonalBlog\blog\wlrBlog>hexxo d
'hexxo' 不是内部或外部命令,也不是可运行的程序
或批处理文件。

D:\PersonalBlog\blog\wlrBlog>hexo d
INFO  Deploying: git
INFO  Setting up Git deployment...
Initialized empty Git repository in D:/PersonalBlog/blog/wlrBlog/.deploy_git/.git/
[master (root-commit) c8a15aa] First commit
 1 file changed, 0 insertions(+), 0 deletions(-)
 create mode 100644 placeholder
INFO  Clearing .deploy_git folder...
INFO  Copying files from public folder...
INFO  Copying files from extend dirs...
warning: LF will be replaced by CRLF in 2020/06/13/hello-world/index.html.
The file will have its original line endings in your working directory
warning: LF will be replaced by CRLF in archives/2020/06/index.html.
The file will have its original line endings in your working directory
warning: LF will be replaced by CRLF in archives/2020/index.html.
The file will have its original line endings in your working directory
warning: LF will be replaced by CRLF in archives/index.html.
The file will have its original line endings in your working directory
warning: LF will be replaced by CRLF in css/style.css.
The file will have its original line endings in your working directory
warning: LF will be replaced by CRLF in fancybox/helpers/jquery.fancybox-buttons.css.
The file will have its original line endings in your working directory
warning: LF will be replaced by CRLF in fancybox/helpers/jquery.fancybox-buttons.js.
The file will have its original line endings in your working directory
warning: LF will be replaced by CRLF in fancybox/helpers/jquery.fancybox-media.js.
The file will have its original line endings in your working directory
warning: LF will be replaced by CRLF in fancybox/helpers/jquery.fancybox-thumbs.css.
The file will have its original line endings in your working directory
warning: LF will be replaced by CRLF in fancybox/helpers/jquery.fancybox-thumbs.js.
The file will have its original line endings in your working directory
warning: LF will be replaced by CRLF in fancybox/jquery.fancybox.css.
The file will have its original line endings in your working directory
warning: LF will be replaced by CRLF in fancybox/jquery.fancybox.js.
The file will have its original line endings in your working directory
warning: LF will be replaced by CRLF in fancybox/jquery.fancybox.pack.js.
The file will have its original line endings in your working directory
warning: LF will be replaced by CRLF in index.html.
The file will have its original line endings in your working directory
warning: LF will be replaced by CRLF in js/script.js.
The file will have its original line endings in your working directory
[master 5b28f94] Site updated: 2020-06-13 12:16:57
 29 files changed, 5825 insertions(+)
 create mode 100644 2020/06/13/hello-world/index.html
 create mode 100644 archives/2020/06/index.html
 create mode 100644 archives/2020/index.html
 create mode 100644 archives/index.html
 create mode 100644 css/fonts/FontAwesome.otf
 create mode 100644 css/fonts/fontawesome-webfont.eot
 create mode 100644 css/fonts/fontawesome-webfont.svg
 create mode 100644 css/fonts/fontawesome-webfont.ttf
 create mode 100644 css/fonts/fontawesome-webfont.woff
 create mode 100644 css/images/banner.jpg
 create mode 100644 css/style.css
 create mode 100644 fancybox/blank.gif
 create mode 100644 fancybox/fancybox_loading.gif
 create mode 100644 fancybox/[email protected]
 create mode 100644 fancybox/fancybox_overlay.png
 create mode 100644 fancybox/fancybox_sprite.png
 create mode 100644 fancybox/[email protected]
 create mode 100644 fancybox/helpers/fancybox_buttons.png
 create mode 100644 fancybox/helpers/jquery.fancybox-buttons.css
 create mode 100644 fancybox/helpers/jquery.fancybox-buttons.js
 create mode 100644 fancybox/helpers/jquery.fancybox-media.js
 create mode 100644 fancybox/helpers/jquery.fancybox-thumbs.css
 create mode 100644 fancybox/helpers/jquery.fancybox-thumbs.js
 create mode 100644 fancybox/jquery.fancybox.css
 create mode 100644 fancybox/jquery.fancybox.js
 create mode 100644 fancybox/jquery.fancybox.pack.js
 create mode 100644 index.html
 create mode 100644 js/script.js
 delete mode 100644 placeholder
Username for 'https://github.com': kikiwlr
Password for 'https://[email protected]':
Enumerating objects: 46, done.
Counting objects: 100% (46/46), done.
Delta compression using up to 8 threads
Compressing objects: 100% (36/36), done.
Writing objects: 100% (46/46), 507.66 KiB | 6.27 MiB/s, done.
Total 46 (delta 3), reused 0 (delta 0)
remote: Resolving deltas: 100% (3/3), done.
To https://github.com/kikiwlr/kikiwlr.github.io.git
 + cc2d917...5b28f94 HEAD -> master (forced update)
Branch 'master' set up to track remote branch 'master' from 'https://github.com/kikiwlr/kikiwlr.github.io.git'.
[32mINFO [39m Deploy done: [35mgit[39m

D:\PersonalBlog\blog\wlrBlog>

创建个人博客_第1张图片

github中添加创建个人博客_第2张图片

你可能感兴趣的:(笔记,个人博客)