GithubPages

Git & Github

1
2
(base) PS C:\Users\NPU481> git -v
git version 2.42.0.windows.2
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
(base) PS C:\Users\NPU481> git config --global user.name murphyhoucn
(base) PS C:\Users\NPU481> git config --global user.email cosmicdustycn@outlook.com
(base) PS C:\Users\NPU481> git config user.name
murphyhoucn
(base) PS C:\Users\NPU481> git config user.email
cosmicdustycn@outlook.com

(base) PS C:\Users\NPU481> git config --global --list
(base) PS C:\Users\NPU481> git config --system --list
(base) PS C:\Users\NPU481> git config --local --list

(base) PS C:\Users\NPU481> ssh-keygen -t rsa -C "cosmicdustycn@outlook.com"

(base) PS C:\Users\NPU481> ssh -T git@github.com
The authenticity of host 'github.com (20.205.243.166)' can't be established.
ECDSA key fingerprint is SHA256:p2QAMXNIC1TJYWeIOttrVc98/R1BUFWu3/LiyKgUfQM.
Are you sure you want to continue connecting (yes/no/[fingerprint])? yes
Warning: Permanently added 'github.com,20.205.243.166' (ECDSA) to the list of known hosts.
Hi murphyhoucn! You've successfully authenticated, but GitHub does not provide shell access.

NodeJS

以管理员身份运行Terminal

安装与配置

Node.js安装与配置(详细步骤)_nodejs安装及环境配置-CSDN博客

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
(base) PS C:\Users\NPU481> node -v
v20.10.0
(base) PS C:\Users\NPU481> npm -v
10.2.3


(base) PS C:\Users\NPU481> npm config get prefix
C:\Users\NPU481\AppData\Roaming\npm
(base) PS C:\Users\NPU481> npm config get cache
C:\Users\NPU481\AppData\Local\npm-cache


(base) PS C:\Users\NPU481> npm config set prefix "C:\Program Files\nodejs\node_global"
(base) PS C:\Users\NPU481> npm config set cache "C:\Program Files\nodejs\node_cache"


(base) PS C:\Users\NPU481> npm config get prefix
C:\Program Files\nodejs\node_global
(base) PS C:\Users\NPU481> npm config get cache
C:\Program Files\nodejs\node_cache

image-20231210091044750

1
2
3
4
5
6
7
8
9
10
11
12
13
# 查看当前镜像
(base) PS C:\Users\NPU481> npm config get registry
https://registry.npmjs.org/

# 设置淘宝镜像
(base) PS C:\Users\NPU481> npm config set registry https://registry.npm.taobao.org
(base) PS C:\Users\NPU481> npm config get registry
https://registry.npm.taobao.org

# 恢复为原镜像
(base) PS C:\Users\NPU481> npm config set registry https://registry.npmjs.org
(base) PS C:\Users\NPU481> npm config get registry
https://registry.npmjs.org
1
2
3
4
5
6
(base) PS C:\Users\NPU481> npm config get proxy
null
(base) PS C:\Users\NPU481> npm config set proxy=http://127.0.0.1:4780
(base) PS C:\Users\NPU481> npm config set proxy=https://127.0.0.1:4780
(base) PS C:\Users\NPU481> npm config get proxy
https://127.0.0.1:4780

在Windows命令提示符(cmd)中设置代理的方法(可解决 git / pip 等指令网络请求失败的情况)_cmd 代理-CSDN博客

安装hexo

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
(base) PS D:\Github\murphyhoucn\murphuhoucn.github.io> npm install -g hexo-cli

added 54 packages in 5s

(base) PS D:\Github\murphyhoucn\murphuhoucn.github.io> hexo -v
hexo-cli: 4.3.1
os: win32 10.0.19045
node: 20.10.0
acorn: 8.10.0
ada: 2.7.2
ares: 1.20.1
base64: 0.5.0
brotli: 1.0.9
cjs_module_lexer: 1.2.2
cldr: 43.1
icu: 73.2
llhttp: 8.1.1
modules: 115
napi: 9
nghttp2: 1.57.0
nghttp3: 0.7.0
ngtcp2: 0.8.1
openssl: 3.0.12+quic
simdutf: 3.2.18
tz: 2023c
undici: 5.26.4
unicode: 15.0
uv: 1.46.0
uvwasi: 0.0.19
v8: 11.3.244.8-node.25
zlib: 1.2.13.1-motley
1
(base) PS D:\Github\murphyhoucn\murphuhoucn.github.io>npm install hexo-deployer-git --save

GithubPages
https://cosmicdusty.cc/post/Tools/GithubPages/
作者
Murphy
发布于
2023年12月10日
许可协议